]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Correct TLS version numbers
authorNick Porter <nick@portercomputing.co.uk>
Wed, 7 May 2025 14:04:27 +0000 (15:04 +0100)
committerNick Porter <nick@portercomputing.co.uk>
Wed, 7 May 2025 14:04:58 +0000 (15:04 +0100)
src/lib/eap/tls.c

index 6294de507d5533b0505da13a6e7c58187dadd71e..f9366b8ecc112cafcd282f98f532381dc95eca2d 100644 (file)
@@ -1224,11 +1224,11 @@ eap_tls_session_t *eap_tls_session_init(request_t *request, eap_session_t *eap_s
 #define SET_TLS_VERSION(_type) \
        if (tls_ ## _type) { \
                int tls_version = 0; \
-               if (tls_ ## _type->vp_float32 >= (float) 1.2) { \
+               if (tls_ ## _type->vp_float32 >= (float) 1.3) { \
                        tls_version = TLS1_3_VERSION; \
-               } else if (tls_ ## _type->vp_float32 >= (float) 1.1) { \
+               } else if (tls_ ## _type->vp_float32 >= (float) 1.2) { \
                        tls_version = TLS1_2_VERSION; \
-               } else if (tls_ ## _type->vp_float32 >= (float) 1) { \
+               } else if (tls_ ## _type->vp_float32 >= (float) 1.1) { \
                        tls_version = TLS1_1_VERSION; \
                } \
                if (tls_version) { \