83 BIO *
data,*detached=NULL,*p7bio=NULL;
98 if (strcmp(argv[0],
"-p") == 0)
102 else if ((strcmp(argv[0],
"-k") == 0) && (argc >= 2)) {
106 }
else if ((strcmp(argv[0],
"-d") == 0) && (argc >= 2))
120 fprintf(stderr,
"No private key file specified\n");
125 if ((x509=PEM_read_bio_X509(in,NULL,NULL,NULL)) == NULL)
goto err;
136 if ((p7=PEM_read_bio_PKCS7(data,NULL,NULL,NULL)) == NULL)
goto err;
156 printf(
"problems decoding\n");
166 fwrite(buf,1, i, stdout);
170 sk=PKCS7_get_signer_info(p7);
173 fprintf(stderr,
"there are no signatures on this data\n");
187 fprintf(stderr,
"Signature verified\n");
211 BIO_printf(bio_err,
"depth=%d %s\n",depth,buf);
214 BIO_printf(bio_err,
"verify error:num=%d:%s\n",err,