Browse Source

fix comments

master
Dr. Stephen Henson 13 years ago
parent
commit
55f39a199d
2 changed files with 4 additions and 4 deletions
  1. +1
    -1
      demos/cms/cms_enc.c
  2. +3
    -3
      demos/cms/cms_ver.c

+ 1
- 1
demos/cms/cms_enc.c View File

@ -12,7 +12,7 @@ int main(int argc, char **argv)
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;


+ 3
- 3
demos/cms/cms_ver.c View File

@ -19,7 +19,7 @@ int main(int argc, char **argv)
st = X509_STORE_new();
/* Read in signer certificate and private key */
/* Read in CA certificate */
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;
/* Open content being signed */
/* Open message being verified */
in = BIO_new_file("smout.txt", "r");
if (!in)
goto err;
/* Sign content */
/* parse message */
cms = SMIME_read_CMS(in, &cont);
if (!cms)


Loading…
Cancel
Save