mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 12:14:38 +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
|
#endif
|
||||||
|
|
||||||
if (extension == NULL || extension->data == NULL) {
|
if (extension == NULL || extension->data == NULL) {
|
||||||
WOLFSSL_MSG("No ALPN extensions not used or bad");
|
return isRequest ? 0
|
||||||
return isRequest ? 0 /* not using ALPN */
|
: TLSX_HandleUnsupportedExtension(ssl);
|
||||||
: BUFFER_ERROR; /* unexpected ALPN response */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* validating alpn list length */
|
/* validating alpn list length */
|
||||||
|
Reference in New Issue
Block a user