File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2593,7 +2593,10 @@ static int TLSX_SNI_VerifyParse(WOLFSSL* ssl, byte isRequest)
25932593 continue;
25942594 }
25952595
2596- SendAlert(ssl, alert_fatal, handshake_failure);
2596+ SendAlert(ssl, alert_fatal,
2597+ IsAtLeastTLSv1_3(ssl->version)
2598+ ? missing_extension
2599+ : handshake_failure);
25972600 WOLFSSL_ERROR_VERBOSE(SNI_ABSENT_ERROR);
25982601 return SNI_ABSENT_ERROR;
25992602 }
@@ -2604,7 +2607,10 @@ static int TLSX_SNI_VerifyParse(WOLFSSL* ssl, byte isRequest)
26042607 if (ssl_sni->status != WOLFSSL_SNI_NO_MATCH)
26052608 continue;
26062609
2607- SendAlert(ssl, alert_fatal, handshake_failure);
2610+ SendAlert(ssl, alert_fatal,
2611+ IsAtLeastTLSv1_3(ssl->version)
2612+ ? missing_extension
2613+ : handshake_failure);
26082614 WOLFSSL_ERROR_VERBOSE(SNI_ABSENT_ERROR);
26092615 return SNI_ABSENT_ERROR;
26102616 }
You can’t perform that action at this time.
0 commit comments