From 92aef122c3faca04d09387663f267212ffd26ca8 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Wed, 13 Jan 2021 15:26:33 +0100 Subject: [PATCH] libtls: Reduce default max version to 1.2 Using TLS 1.3 with various EAP methods is not yet fully standardized, so we don't enable it by default yet. --- conf/options/charon.opt | 2 +- src/libtls/tls.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/conf/options/charon.opt b/conf/options/charon.opt index eb835e88e..fb69bd7a0 100644 --- a/conf/options/charon.opt +++ b/conf/options/charon.opt @@ -476,7 +476,7 @@ charon.tls.suites charon.tls.version_min = 1.0 Minimum TLS version to negotiate. -charon.tls.version_max = 1.3 +charon.tls.version_max = 1.2 Maximum TLS version to negotiate. charon.user diff --git a/src/libtls/tls.c b/src/libtls/tls.c index 4cb68ba29..8b9911a87 100644 --- a/src/libtls/tls.c +++ b/src/libtls/tls.c @@ -468,8 +468,8 @@ static void determine_versions(private_tls_t *this) } } if (this->version_max == TLS_UNSPEC) - { - this->version_max = TLS_SUPPORTED_MAX; + { /* default to TLS 1.2 until 1.3 is stable for use in EAP */ + this->version_max = TLS_1_2; version_str = lib->settings->get_str(lib->settings, "%s.tls.version_max", NULL, lib->ns);