fix comments
authorDr. Stephen Henson <steve@openssl.org>
Thu, 21 Jan 2010 01:17:45 +0000 (01:17 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Thu, 21 Jan 2010 01:17:45 +0000 (01:17 +0000)
demos/cms/cms_enc.c
demos/cms/cms_ver.c

index 9032bed496a682e8ad08416b1f5b697534e2a2d2..916b479d3c6a60337ee1f33cc5acf84557a5bbeb 100644 (file)
@@ -12,7 +12,7 @@ int main(int argc, char **argv)
        int ret = 1;
 
        /*
        int ret = 1;
 
        /*
-        * On OpenSSL 0.9.9 only:
+        * On OpenSSL 1.0.0 and later only:
         * for streaming set CMS_STREAM
         */
        int flags = CMS_STREAM;
         * for streaming set CMS_STREAM
         */
        int flags = CMS_STREAM;
index 4cb8c4ed781719f46e2f7e372986756e243c8913..bf1145ed8bec771a56232486b7c2ab52bfbdd588 100644 (file)
@@ -19,7 +19,7 @@ int main(int argc, char **argv)
 
        st = X509_STORE_new();
 
 
        st = X509_STORE_new();
 
-       /* Read in signer certificate and private key */
+       /* Read in CA certificate */
        tbio = BIO_new_file("cacert.pem", "r");
 
        if (!tbio)
        tbio = BIO_new_file("cacert.pem", "r");
 
        if (!tbio)
@@ -33,14 +33,14 @@ int main(int argc, char **argv)
        if (!X509_STORE_add_cert(st, cacert))
                goto err;
 
        if (!X509_STORE_add_cert(st, cacert))
                goto err;
 
-       /* Open content being signed */
+       /* Open message being verified */
 
        in = BIO_new_file("smout.txt", "r");
 
        if (!in)
                goto err;
 
 
        in = BIO_new_file("smout.txt", "r");
 
        if (!in)
                goto err;
 
-       /* Sign content */
+       /* parse message */
        cms = SMIME_read_CMS(in, &cont);
 
        if (!cms)
        cms = SMIME_read_CMS(in, &cont);
 
        if (!cms)