st = X509_STORE_new();
- /* Read in signer certificate and private key */
+ /* Read in CA certificate */
tbio = BIO_new_file("cacert.pem", "r");
if (!tbio)
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)