diff --git a/wolfcrypt/src/asn.c b/wolfcrypt/src/asn.c index 4ba752529..01f2360e4 100755 --- a/wolfcrypt/src/asn.c +++ b/wolfcrypt/src/asn.c @@ -9677,7 +9677,13 @@ static int DecodeBasicOcspResponse(byte* source, word32* ioIndex, } } 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, ca->publicKey, ca->pubKeySize, ca->keyOID,