Lines Matching refs:cert
18 static ESS_CERT_ID *ESS_CERT_ID_new_init(const X509 *cert,
21 const X509 *cert,
48 X509 *cert = sk_X509_value(certs, i); in OSSL_ESS_signing_cert_new_init() local
50 if ((cid = ESS_CERT_ID_new_init(cert, 1)) == NULL) { in OSSL_ESS_signing_cert_new_init()
67 static ESS_CERT_ID *ESS_CERT_ID_new_init(const X509 *cert, in ESS_CERT_ID_new_init() argument
78 if (!X509_digest(cert, EVP_sha1(), cert_sha1, NULL)) { in ESS_CERT_ID_new_init()
101 if ((name->d.dirn = X509_NAME_dup(X509_get_issuer_name(cert))) == NULL) { in ESS_CERT_ID_new_init()
112 = ASN1_INTEGER_dup(X509_get0_serialNumber(cert))) == NULL) { in ESS_CERT_ID_new_init()
150 X509 *cert = sk_X509_value(certs, i); in OSSL_ESS_signing_cert_v2_new_init() local
152 if ((cid = ESS_CERT_ID_V2_new_init(hash_alg, cert, 1)) == NULL) { in OSSL_ESS_signing_cert_v2_new_init()
171 const X509 *cert, in ESS_CERT_ID_V2_new_init() argument
204 if (!X509_digest(cert, hash_alg, hash, &hash_len)) { in ESS_CERT_ID_V2_new_init()
226 if ((name->d.dirn = X509_NAME_dup(X509_get_issuer_name(cert))) == NULL) { in ESS_CERT_ID_V2_new_init()
236 cid->issuer_serial->serial = ASN1_INTEGER_dup(X509_get0_serialNumber(cert)); in ESS_CERT_ID_V2_new_init()
250 static int ess_issuer_serial_cmp(const ESS_ISSUER_SERIAL *is, const X509 *cert) in ess_issuer_serial_cmp() argument
254 if (is == NULL || cert == NULL || sk_GENERAL_NAME_num(is->issuer) != 1) in ess_issuer_serial_cmp()
259 || X509_NAME_cmp(issuer->d.dirn, X509_get_issuer_name(cert)) != 0) in ess_issuer_serial_cmp()
262 return ASN1_INTEGER_cmp(is->serial, X509_get0_serialNumber(cert)); in ess_issuer_serial_cmp()
273 const X509 *cert; in find() local
308 cert = sk_X509_value(certs, i); in find()
311 if (!X509_digest(cert, md, cert_digest, &len) in find()
321 if (is == NULL || ess_issuer_serial_cmp(is, cert) == 0) { in find()