summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2010-04-13 10:32:40 +0200
committerSimon Josefsson <simon@josefsson.org>2010-04-13 10:32:40 +0200
commit8caa34394355b10e6e58948b9458317aeb882c7b (patch)
tree1c1a41fd08481777b5773a8434e0adf09629ffec /examples
parentbd50a4d730e75804744f45308c4d4dfb40db042d (diff)
downloadlibtasn1-8caa34394355b10e6e58948b9458317aeb882c7b.tar.gz
libtasn1-8caa34394355b10e6e58948b9458317aeb882c7b.tar.bz2
libtasn1-8caa34394355b10e6e58948b9458317aeb882c7b.zip
Indent examples. Fix syntax-check warnings.
Diffstat (limited to 'examples')
-rw-r--r--examples/CertificateExample.c12
-rw-r--r--examples/CrlExample.c12
-rw-r--r--examples/pkix.asn8
3 files changed, 16 insertions, 16 deletions
diff --git a/examples/CertificateExample.c b/examples/CertificateExample.c
index 396b8cf..4673f5f 100644
--- a/examples/CertificateExample.c
+++ b/examples/CertificateExample.c
@@ -227,7 +227,7 @@ create_certificate (ASN1_TYPE cert_def, unsigned char *der, int *der_len)
/* Use the next 3 lines to visit the empty certificate */
/* printf("-----------------\n");
- asn1_visit_tree(cert1,"");
+ asn1_visit_tree(cert1,"");
printf("-----------------\n"); */
/* version: v3(2) */
@@ -532,8 +532,8 @@ create_certificate (ASN1_TYPE cert_def, unsigned char *der, int *der_len)
/* Use the next 3 lines to visit the certificate */
- /* printf("-----------------\n");
- asn1_visit_tree(cert1,"");
+ /* printf("-----------------\n");
+ asn1_visit_tree(cert1,"");
printf("-----------------\n"); */
*der_len = max_len;
@@ -616,8 +616,8 @@ get_certificate (ASN1_TYPE cert_def, unsigned char *der, int der_len)
}
/* Use the next 3 lines to visit the certificate */
- /* printf("-----------------\n");
- asn1_visit_tree(cert2,"");
+ /* printf("-----------------\n");
+ asn1_visit_tree(cert2,"");
printf("-----------------\n"); */
@@ -659,7 +659,7 @@ main (int argc, char *argv[])
/* Use the following 3 lines to visit the PKIX1Implicit structures */
/* printf("-----------------\n");
- asn1_visit_tree(PKIX1Implicit88,"PKIX1Implicit88");
+ asn1_visit_tree(PKIX1Implicit88,"PKIX1Implicit88");
printf("-----------------\n"); */
der_len = 1024;
diff --git a/examples/CrlExample.c b/examples/CrlExample.c
index 75a7416..f38f1a0 100644
--- a/examples/CrlExample.c
+++ b/examples/CrlExample.c
@@ -236,7 +236,7 @@ create_CRL (ASN1_TYPE cert_def, unsigned char *der, int *der_len)
/* Use the next 3 lines to visit the empty certificate */
/* printf("-----------------\n");
- asn1_visit_tree(crl,"");
+ asn1_visit_tree(crl,"");
printf("-----------------\n"); */
@@ -402,8 +402,8 @@ create_CRL (ASN1_TYPE cert_def, unsigned char *der, int *der_len)
/* Use the next 3 lines to visit the certificate */
- /* printf("-----------------\n");
- asn1_visit_tree(crl,"");
+ /* printf("-----------------\n");
+ asn1_visit_tree(crl,"");
printf("-----------------\n"); */
*der_len = max_len;
@@ -482,8 +482,8 @@ get_CRL (ASN1_TYPE cert_def, unsigned char *der, int der_len)
}
/* Use the next 3 lines to visit the certificate */
- /* printf("-----------------\n");
- asn1_visit_tree(crl2,"");
+ /* printf("-----------------\n");
+ asn1_visit_tree(crl2,"");
printf("-----------------\n"); */
@@ -524,7 +524,7 @@ main (int argc, char *argv[])
/* Use the following 3 lines to visit the PKIX1Implicit structures */
/* printf("-----------------\n");
- asn1_visit_tree(cert_def,"PKIX1Implicit88");
+ asn1_visit_tree(cert_def,"PKIX1Implicit88");
printf("-----------------\n"); */
der_len = 1024;
diff --git a/examples/pkix.asn b/examples/pkix.asn
index 76cbb0d..d13ce20 100644
--- a/examples/pkix.asn
+++ b/examples/pkix.asn
@@ -384,7 +384,7 @@ id-ad-caIssuers OBJECT IDENTIFIER ::= { id-ad 2 }
Attribute ::= SEQUENCE {
type AttributeType,
values SET OF AttributeValue
- -- at least one value is required --
+ -- at least one value is required --
}
AttributeType ::= OBJECT IDENTIFIER
@@ -548,7 +548,7 @@ TBSCertificate ::= SEQUENCE {
subjectUniqueID [2] IMPLICIT UniqueIdentifier OPTIONAL,
-- If present, version shall be v2 or v3
extensions [3] EXPLICIT Extensions OPTIONAL
- -- If present, version shall be v3 --
+ -- If present, version shall be v3 --
}
Version ::= INTEGER { v1(0), v2(1), v3(2) }
@@ -600,7 +600,7 @@ TBSCertList ::= SEQUENCE {
-- if present, shall be v2
} OPTIONAL,
crlExtensions [0] EXPLICIT Extensions OPTIONAL
- -- if present, shall be v2 --
+ -- if present, shall be v2 --
}
-- Version, Time, CertificateSerialNumber, and Extensions were
@@ -684,7 +684,7 @@ BuiltInStandardAttributes ::= SEQUENCE {
personal-name [5] EXPLICIT PersonalName OPTIONAL,
-- see also teletex-personal-name
organizational-unit-names [6] EXPLICIT OrganizationalUnitNames OPTIONAL
- -- see also teletex-organizational-unit-names --
+ -- see also teletex-organizational-unit-names --
}
CountryName ::= [APPLICATION 1] CHOICE {