6 int main(
int argc,
char **argv)
8 BIO *
in = NULL, *
out = NULL, *tbio = NULL;
9 X509 *scert = NULL, *scert2 = NULL;
10 EVP_PKEY *skey = NULL, *skey2 = NULL;
22 scert = PEM_read_bio_X509(tbio, NULL, 0, NULL);
35 scert2 = PEM_read_bio_X509(tbio, NULL, 0, NULL);
41 if (!scert2 || !skey2)
77 fprintf(stderr,
"Error Signing Data\n");
82 CMS_ContentInfo_free(cms);