forked from wolfSSL/wolfssl
Merge pull request #712 from moisesguimaraes/fixes-ocsp-lookup
fixes CA matching when using NO_SKID
This commit is contained in:
@ -9677,7 +9677,13 @@ static int DecodeBasicOcspResponse(byte* source, word32* ioIndex,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
Signer* ca = GetCA(cm, resp->issuerKeyHash);
|
Signer* ca = NULL;
|
||||||
|
|
||||||
|
#ifndef NO_SKID
|
||||||
|
ca = GetCA(cm, resp->issuerKeyHash);
|
||||||
|
#else
|
||||||
|
ca = GetCA(cm, resp->issuerHash);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (!ca || !ConfirmSignature(resp->response, resp->responseSz,
|
if (!ca || !ConfirmSignature(resp->response, resp->responseSz,
|
||||||
ca->publicKey, ca->pubKeySize, ca->keyOID,
|
ca->publicKey, ca->pubKeySize, ca->keyOID,
|
||||||
|
Reference in New Issue
Block a user