certificate verify callback override

This commit is contained in:
Jacob Barthelmeh
2017-07-27 17:32:40 -06:00
parent 3d0c850e10
commit b40218f7f4

View File

@@ -8636,9 +8636,10 @@ int ProcessPeerCerts(WOLFSSL* ssl, byte* input, word32* inOutIdx,
/* set X509 format for peer cert */
int copyRet = CopyDecodedToX509(&ssl->peerCert,
args->dCert);
if (copyRet == MEMORY_E)
if (copyRet == MEMORY_E) {
args->fatal = 1;
}
}
#endif /* KEEP_PEER_CERT */
#ifndef IGNORE_KEY_EXTENSIONS