Lines Matching refs:cert
73 static int TS_find_cert(STACK_OF(ESS_CERT_ID) *cert_ids, X509 *cert);
282 X509 *cert;
290 cert = sk_X509_value(chain, 0);
291 if (TS_find_cert(cert_ids, cert) != 0)
301 cert = sk_X509_value(chain, i);
302 if (TS_find_cert(cert_ids, cert) < 0)
327 static int TS_find_cert(STACK_OF(ESS_CERT_ID) *cert_ids, X509 *cert)
331 if (!cert_ids || !cert)
335 X509_check_purpose(cert, -1, 0);
337 /* Look for cert in the cert_ids vector. */
342 if (cid->hash->length == sizeof(cert->sha1_hash)
343 && !memcmp(cid->hash->data, cert->sha1_hash,
344 sizeof(cert->sha1_hash))) {
347 if (!is || !TS_issuer_serial_cmp(is, cert->cert_info))