mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-01 03:34:39 +02:00
adds unsupported_extension behavior to ALPN
This commit is contained in:
@@ -1207,9 +1207,8 @@ static int TLSX_ALPN_ParseAndSet(WOLFSSL *ssl, byte *input, word16 length,
|
||||
#endif
|
||||
|
||||
if (extension == NULL || extension->data == NULL) {
|
||||
WOLFSSL_MSG("No ALPN extensions not used or bad");
|
||||
return isRequest ? 0 /* not using ALPN */
|
||||
: BUFFER_ERROR; /* unexpected ALPN response */
|
||||
return isRequest ? 0
|
||||
: TLSX_HandleUnsupportedExtension(ssl);
|
||||
}
|
||||
|
||||
/* validating alpn list length */
|
||||
|
Reference in New Issue
Block a user