From 7f157eb31fdf9e9bb7533075aa2558516a5fb7d3 Mon Sep 17 00:00:00 2001 From: Jerry Yu Date: Fri, 6 May 2022 11:28:00 +0800 Subject: [PATCH] Change alert message Signed-off-by: Jerry Yu --- library/ssl_tls13_server.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/ssl_tls13_server.c b/library/ssl_tls13_server.c index 3730483d8..bd3d60857 100644 --- a/library/ssl_tls13_server.c +++ b/library/ssl_tls13_server.c @@ -1384,8 +1384,8 @@ static int ssl_tls13_write_hello_retry_request_coordinate( if( ssl->handshake->hello_retry_request_count > 0 ) { MBEDTLS_SSL_DEBUG_MSG( 1, ( "Too many HRRs" ) ); - MBEDTLS_SSL_PEND_FATAL_ALERT( MBEDTLS_SSL_ALERT_MSG_UNEXPECTED_MESSAGE, - MBEDTLS_ERR_SSL_UNEXPECTED_MESSAGE ); + MBEDTLS_SSL_PEND_FATAL_ALERT( MBEDTLS_SSL_ALERT_MSG_HANDSHAKE_FAILURE, + MBEDTLS_ERR_SSL_HANDSHAKE_FAILURE ); return( MBEDTLS_ERR_SSL_HANDSHAKE_FAILURE ); }