]> git.ipfire.org Git - thirdparty/curl.git/commit
tls: make default TLS version be minimum 1.2
authorDaniel Stenberg <daniel@haxx.se>
Fri, 11 Jul 2025 06:14:42 +0000 (08:14 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 27 Jul 2025 16:23:04 +0000 (18:23 +0200)
commit9d8998c99408e1adf8eba629fad9f87b3235bdfa
tree6f31dadd5931382498443c8e25528c9dc23d5176
parent0e022d4241a48c8ceb22a21eb976b22b4165e8f7
tls: make default TLS version be minimum 1.2

This still allows users to explictily ask for 1.0 or 1.1 as the minimum
version. If the TLS library allows it.

Starting with this change, the CURL_SSLVERSION_DEFAULT value is no
longer used as minimum version when the TLS backend are called.

This also makes curl set the minimum version to 1.2 independently of
libcurl for the rare case where a newer curl tool would use an older
libcurl.

URL: https://curl.se/mail/lib-2025-07/0007.html
Assisted-by: Stefan Eissing
Closes #17894
23 files changed:
docs/libcurl/opts/CURLOPT_SSLVERSION.md
lib/setopt.c
lib/setopt.h
lib/url.c
lib/vtls/gtls.c
src/config2setopts.c
src/tool_cfgable.h
src/tool_getparam.c
src/tool_paramhlp.c
src/tool_paramhlp.h
src/tool_setopt.c
tests/data/test1400
tests/data/test1401
tests/data/test1402
tests/data/test1403
tests/data/test1404
tests/data/test1405
tests/data/test1406
tests/data/test1407
tests/data/test1420
tests/data/test1465
tests/data/test1481
tests/http/test_17_ssl_use.py