forked from wolfSSL/wolfssl
send handshake failure alert to a server
This commit is contained in:
@ -7257,6 +7257,10 @@ static int GetRecordHeader(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
|
|||||||
WOLFSSL_MSG("DTLS handshake, skip RH version number check");
|
WOLFSSL_MSG("DTLS handshake, skip RH version number check");
|
||||||
else {
|
else {
|
||||||
WOLFSSL_MSG("SSL version error");
|
WOLFSSL_MSG("SSL version error");
|
||||||
|
/* send alert per RFC 5246 Section 7.2.1 */
|
||||||
|
if(ssl->options.side == WOLFSSL_CLIENT_END) {
|
||||||
|
SendAlert(ssl, alert_fatal, handshake_failure);
|
||||||
|
}
|
||||||
return VERSION_ERROR; /* only use requested version */
|
return VERSION_ERROR; /* only use requested version */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user