]> git.ipfire.org Git - thirdparty/curl.git/commit
openssl/gnutls: rectify the TLS version checks for QUIC
authorDaniel Stenberg <daniel@haxx.se>
Mon, 27 May 2024 21:12:27 +0000 (23:12 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 28 May 2024 08:39:02 +0000 (10:39 +0200)
commit582743f2e74bce21003373c2e6b02ef9661638f7
tree6b7d52946fa049cf15ca57eb8b262edb6bb7d4ad
parent7bbad0c03373522364a37ff8fa2c9ab300b327d3
openssl/gnutls: rectify the TLS version checks for QUIC

The versions check wrongly complained and return error if the *minimum*
version was set to something less than 1.3. QUIC is always TLS 1.3, but
that means minimum 1.2 is still fine to ask for.

This also renames the local variable to make the mistake harder to make
in the future.

Regression shipped in 8.8.0

Follow-up to 3210101088dfa3d6a125

Reported-by: fds242 on github
Fixes #13799
Closes #13802
lib/vtls/gtls.c
lib/vtls/openssl.c