libtls: Increase default min version to 1.2

The older versions are generally considered deprecated (there is an
Internet-Draft that aims to do that formally).
This commit is contained in:
Tobias Brunner
2021-02-12 14:35:23 +01:00
parent 3abcbf82b5
commit a60e248b0d
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -463,8 +463,8 @@ static void determine_versions(private_tls_t *this)
char *version_str;
if (this->version_min == TLS_UNSPEC)
{
this->version_min = TLS_SUPPORTED_MIN;
{ /* default to TLS 1.2 as older versions are considered deprecated */
this->version_min = TLS_1_2;
version_str = lib->settings->get_str(lib->settings, "%s.tls.version_min",
NULL, lib->ns);