Lines Matching refs:cert
71 static int TS_find_cert(STACK_OF(ESS_CERT_ID) *cert_ids, X509 *cert);
266 X509 *cert;
273 cert = sk_X509_value(chain, 0);
274 if (TS_find_cert(cert_ids, cert) != 0) goto err;
283 cert = sk_X509_value(chain, i);
284 if (TS_find_cert(cert_ids, cert) < 0) goto err;
308 static int TS_find_cert(STACK_OF(ESS_CERT_ID) *cert_ids, X509 *cert)
312 if (!cert_ids || !cert) return -1;
315 X509_check_purpose(cert, -1, 0);
317 /* Look for cert in the cert_ids vector. */
323 if (cid->hash->length == sizeof(cert->sha1_hash)
324 && !memcmp(cid->hash->data, cert->sha1_hash,
325 sizeof(cert->sha1_hash)))
329 if (!is || !TS_issuer_serial_cmp(is, cert->cert_info))