Lines Matching refs:cid
21 static int ocsp_match_issuerid(X509 *cert, OCSP_CERTID *cid,
244 OCSP_CERTID *tmpid, *cid; in ocsp_check_ids() local
254 cid = sk_OCSP_SINGLERESP_value(sresp, 0)->certId; in ocsp_check_ids()
261 if (OCSP_id_issuer_cmp(cid, tmpid)) { in ocsp_check_ids()
264 cid->hashAlgorithm.algorithm)) in ocsp_check_ids()
272 *ret = cid; in ocsp_check_ids()
276 static int ocsp_match_issuerid(X509 *cert, OCSP_CERTID *cid, in ocsp_match_issuerid() argument
280 if (cid) { in ocsp_match_issuerid()
285 if ((dgst = EVP_get_digestbyobj(cid->hashAlgorithm.algorithm)) in ocsp_match_issuerid()
295 if ((cid->issuerNameHash.length != mdlen) || in ocsp_match_issuerid()
296 (cid->issuerKeyHash.length != mdlen)) in ocsp_match_issuerid()
301 if (memcmp(md, cid->issuerNameHash.data, mdlen)) in ocsp_match_issuerid()
304 if (memcmp(md, cid->issuerKeyHash.data, mdlen)) in ocsp_match_issuerid()