Lines Matching refs:cert_ids
71 static int TS_find_cert(STACK_OF(ESS_CERT_ID) *cert_ids, X509 *cert);
265 STACK_OF(ESS_CERT_ID) *cert_ids = NULL;
271 cert_ids = ss->cert_ids;
272 /* The signer certificate must be the first in cert_ids. */
274 if (TS_find_cert(cert_ids, cert) != 0) goto err;
277 than one certificate ids in cert_ids. */
278 if (sk_ESS_CERT_ID_num(cert_ids) > 1)
280 /* All the certificates of the chain must be in cert_ids. */
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;
317 /* Look for cert in the cert_ids vector. */
318 for (i = 0; i < sk_ESS_CERT_ID_num(cert_ids); ++i)
320 ESS_CERT_ID *cid = sk_ESS_CERT_ID_value(cert_ids, i);