fix check for GNUTLS_TLS1_3 (it is an enum)

This commit is contained in:
Viktor Szakats 2025-08-21 13:20:57 +02:00
parent ddac9028d2
commit dbc33e072c
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201

View file

@ -733,7 +733,7 @@ int Curl_glts_get_ietf_proto(gnutls_session_t session)
return CURL_IETF_PROTO_TLS1_1;
case GNUTLS_TLS1_2:
return CURL_IETF_PROTO_TLS1_2;
#ifdef GNUTLS_TLS1_3
#if GNUTLS_VERSION_NUMBER >= 0x030603
case GNUTLS_TLS1_3:
return CURL_IETF_PROTO_TLS1_3;
#endif