rollingback certErr_ovrdn, VerifyCallback

This commit is contained in:
Takashi Kojo
2017-07-30 06:25:19 +09:00
committed by Jacob Barthelmeh
parent dbad348537
commit 5a40d8b3c2
2 changed files with 2 additions and 11 deletions

View File

@@ -7871,7 +7871,6 @@ int ProcessPeerCerts(WOLFSSL* ssl, byte* input, word32* inOutIdx,
XMEMSET(args, 0, sizeof(ProcPeerCertArgs));
args->idx = *inOutIdx;
args->begin = *inOutIdx;
ssl->certErr_ovrdn = 0;
#ifdef WOLFSSL_ASYNC_CRYPT
ssl->async.freeArgs = FreeProcPeerCertArgs;
#elif defined(WOLFSSL_NONBLOCK_OCSP)
@@ -8994,7 +8993,7 @@ int ProcessPeerCerts(WOLFSSL* ssl, byte* input, word32* inOutIdx,
}
#ifdef WOLFSSL_ALWAYS_VERIFY_CB
else {
if (ssl->verifyCallback && !ssl->certErr_ovrdn) {
if (ssl->verifyCallback) {
int ok;
store->error = ret;
@@ -23431,11 +23430,7 @@ static int DoSessionTicket(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
FALL_THROUGH;
case TLS_ASYNC_DO:
if(ssl->certErr_ovrdn){
ssl->options.asyncState = TLS_ASYNC_FINALIZE;
ret = 0;
}
else {
{
#ifndef NO_RSA
if (ssl->peerRsaKey != NULL && ssl->peerRsaKeyPresent != 0) {
WOLFSSL_MSG("Doing RSA peer cert verify");
@@ -23579,9 +23574,6 @@ static int DoSessionTicket(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
case TLS_ASYNC_END:
{
if(ssl->certErr_ovrdn){
ret = 0;
}
break;
}
default:

View File

@@ -3317,7 +3317,6 @@ struct WOLFSSL {
#endif
WOLFSSL_ALERT_HISTORY alert_history;
int verifyDepth;
int certErr_ovrdn; /* overriden by VerifyCallback */
int error;
int rfd; /* read file descriptor */
int wfd; /* write file descriptor */