Peer cert ASN PARSE ERROR

This commit is contained in:
Takashi Kojo
2017-09-01 05:52:21 +09:00
committed by Jacob Barthelmeh
parent 6f44969e23
commit 13325606b7

View File

@@ -8510,6 +8510,7 @@ int ProcessPeerCerts(WOLFSSL* ssl, byte* input, word32* inOutIdx,
}
else if (ret == ASN_PARSE_E || ret == BUFFER_E) {
WOLFSSL_MSG("Got Peer cert ASN PARSE or BUFFER ERROR");
SendAlert(ssl, alert_fatal, bad_certificate);
#ifdef OPENSSL_EXTRA
ssl->peerVerifyRet = X509_V_ERR_CERT_REJECTED;
#endif