Lines Matching refs:certs
39 STACK_OF(X509) *certs; in pkcs7_to_cert()
44 certs = sk_X509_new_null(); in pkcs7_to_cert()
45 if (!certs) in pkcs7_to_cert()
48 if (!PKCS7_get_certificates(certs, &pkcs7_cbs)) { in pkcs7_to_cert()
65 certs = p7->d.sign->cert; in pkcs7_to_cert()
68 certs = p7->d.signed_and_enveloped->cert; in pkcs7_to_cert()
71 certs = NULL; in pkcs7_to_cert()
76 if (!certs || ((num = sk_X509_num(certs)) == 0)) { in pkcs7_to_cert()
86 i2d_X509_fp(f, sk_X509_value(certs, 0)); in pkcs7_to_cert()
97 X509 *cert = sk_X509_value(certs, i); in pkcs7_to_cert()
108 if (certs) in pkcs7_to_cert()
109 sk_X509_pop_free(certs, X509_free); in pkcs7_to_cert()