mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
send protocol_version fatal alert message
This commit is contained in:
@ -7257,9 +7257,9 @@ static int GetRecordHeader(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
|
||||
WOLFSSL_MSG("DTLS handshake, skip RH version number check");
|
||||
else {
|
||||
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);
|
||||
/* send alert per RFC5246 Appendix E. Backward Compatibility */
|
||||
if (ssl->options.side == WOLFSSL_CLIENT_END) {
|
||||
SendAlert(ssl, alert_fatal, protocol_version);
|
||||
}
|
||||
return VERSION_ERROR; /* only use requested version */
|
||||
}
|
||||
|
Reference in New Issue
Block a user