Merge pull request #3048 from embhorn/zd10216

Override CRL error for NO_VERIFY
This commit is contained in:
toddouska 2020-06-29 15:35:53 -07:00 committed by GitHub
commit 2c11f96c9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10941,6 +10941,11 @@ int ProcessPeerCerts(WOLFSSL* ssl, byte* input, word32* inOutIdx,
/* Do verify callback */
ret = DoVerifyCallback(ssl->ctx->cm, ssl, ret, args);
if (ssl->options.verifyNone &&
(ret == CRL_MISSING || ret == CRL_CERT_REVOKED)) {
WOLFSSL_MSG("Ignoring CRL problem based on verify setting");
ret = ssl->error = 0;
}
#ifdef WOLFSSL_ALT_CERT_CHAINS
/* For alternate cert chain, its okay for a CA cert to fail