Skip to content

Commit eae22ab

Browse files
Send illegal_parameter alert rather than handshake_failure when the server tries to use a cipher suite that the client does not support. Fixes #9639.
1 parent 1e770e1 commit eae22ab

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/tls13.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5497,8 +5497,8 @@ int DoTls13ServerHello(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
54975497
suite[1] = ssl->options.cipherSuite;
54985498
if (!FindSuiteSSL(ssl, suite)) {
54995499
WOLFSSL_MSG("Cipher suite not supported on client");
5500-
WOLFSSL_ERROR_VERBOSE(MATCH_SUITE_ERROR);
5501-
return MATCH_SUITE_ERROR;
5500+
WOLFSSL_ERROR_VERBOSE(INVALID_PARAMETER);
5501+
return INVALID_PARAMETER;
55025502
}
55035503

55045504
#if defined(HAVE_ECH)

0 commit comments

Comments
 (0)