In ocsp_match_issuerid() we are passed the CA that signed the responder
certificate so need to match its subject with the certificate IDs in the response.
This commit is contained in:
parent
b01ab14338
commit
192ebef8cf
@ -305,7 +305,7 @@ static int ocsp_match_issuerid(X509 *cert, OCSP_CERTID *cid,
|
|||||||
if ((cid->issuerNameHash->length != mdlen) ||
|
if ((cid->issuerNameHash->length != mdlen) ||
|
||||||
(cid->issuerKeyHash->length != mdlen))
|
(cid->issuerKeyHash->length != mdlen))
|
||||||
return 0;
|
return 0;
|
||||||
iname = X509_get_issuer_name(cert);
|
iname = X509_get_subject_name(cert);
|
||||||
if (!X509_NAME_digest(iname, dgst, md, NULL))
|
if (!X509_NAME_digest(iname, dgst, md, NULL))
|
||||||
return -1;
|
return -1;
|
||||||
if (memcmp(md, cid->issuerNameHash->data, mdlen))
|
if (memcmp(md, cid->issuerNameHash->data, mdlen))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user