]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
OSEN: Disable TLS v1.3 by default
authorJouni Malinen <j@w1.fi>
Sat, 5 Jan 2019 14:52:05 +0000 (16:52 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 5 Jan 2019 14:52:05 +0000 (16:52 +0200)
TLS v1.3 was already disabled by default for EAP-FAST, EAP-TTLS,
EAP-PEAP, and EAP-TLS, but the unauthenticated client cases of EAP-TLS
-like functionality (e.g., the one used in OSEN) were missed. Address
those EAP types as well in the same way of disabling TLS v1.3 by default
for now to avoid functionality issues with TLS libraries that enable TLS
v1.3 by default.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/eap_peer/eap_tls_common.c

index 0de131526a5197598b90cdcabc17c2b630eb8016..0f6f0ba14d950b6b6245c9df69f731e30455a20e 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * EAP peer: EAP-TLS/PEAP/TTLS/FAST common functions
- * Copyright (c) 2004-2013, Jouni Malinen <j@w1.fi>
+ * Copyright (c) 2004-2019, Jouni Malinen <j@w1.fi>
  *
  * This software may be distributed under the terms of the BSD license.
  * See README for more details.
@@ -170,7 +170,9 @@ static int eap_tls_params_from_conf(struct eap_sm *sm,
                 * TLS v1.3 changes, so disable this by default for now. */
                params->flags |= TLS_CONN_DISABLE_TLSv1_3;
        }
-       if (data->eap_type == EAP_TYPE_TLS) {
+       if (data->eap_type == EAP_TYPE_TLS ||
+           data->eap_type == EAP_UNAUTH_TLS_TYPE ||
+           data->eap_type == EAP_WFA_UNAUTH_TLS_TYPE) {
                /* While the current EAP-TLS implementation is more or less
                 * complete for TLS v1.3, there has been no interoperability
                 * testing with other implementations, so disable for by default