mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-06 13:40:50 +02:00
harden SSL config defaults
This commit is contained in:
@@ -17545,7 +17545,10 @@ int wolfSSL_set_alpn_protos(WOLFSSL* ssl,
|
||||
unsigned int ptIdx;
|
||||
unsigned int sz;
|
||||
unsigned int idx = 0;
|
||||
int alpn_opt = WOLFSSL_ALPN_CONTINUE_ON_MISMATCH;
|
||||
/* RFC 7301: a server that does not select any of the client's offered
|
||||
* protocols MUST send no_application_protocol. Match that contract on
|
||||
* the OpenSSL-compat surface rather than silently continuing. */
|
||||
int alpn_opt = WOLFSSL_ALPN_FAILED_ON_MISMATCH;
|
||||
int ret;
|
||||
|
||||
WOLFSSL_ENTER("wolfSSL_set_alpn_protos");
|
||||
|
||||
Reference in New Issue
Block a user