mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 12:14:38 +02:00
have server side reply unexpected_message for hello_request
This commit is contained in:
@@ -2609,6 +2609,11 @@ static int DoHelloRequest(CYASSL* ssl, const byte* input, word32* inOutIdx)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ssl->options.side == SERVER_END) {
|
||||||
|
SendAlert(ssl, alert_fatal, unexpected_message); /* try */
|
||||||
|
return FATAL_ERROR;
|
||||||
|
}
|
||||||
|
else
|
||||||
return SendAlert(ssl, alert_warning, no_renegotiation);
|
return SendAlert(ssl, alert_warning, no_renegotiation);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user