]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
openssl: drop unused pre-OpenSSL3 `ctx_option_t` typedef
authorViktor Szakats <commit@vsz.me>
Fri, 26 Jun 2026 18:20:01 +0000 (20:20 +0200)
committerViktor Szakats <commit@vsz.me>
Fri, 26 Jun 2026 19:12:35 +0000 (21:12 +0200)
Follow-up to 69c89bf3d3137fcbb2b8bc57233182adcf1e2817 #18330

Closes #22197

lib/vtls/openssl.c

index ceff6266dbdabaed812950591e13adcb57addb25..caab715b6db324d69d99af5c68b4f7249365f1a4 100644 (file)
@@ -2630,14 +2630,12 @@ static CURLcode ossl_set_ssl_version_min_max(struct Curl_cfilter *cf,
   return CURLE_OK;
 }
 
-#ifdef HAVE_BORINGSSL_LIKE
-typedef uint32_t ctx_option_t;
-#elif defined(HAVE_OPENSSL3)
-typedef uint64_t ctx_option_t;
-#elif defined(LIBRESSL_VERSION_NUMBER)
+#ifdef LIBRESSL_VERSION_NUMBER
 typedef long ctx_option_t;
+#elif defined(HAVE_BORINGSSL_LIKE)
+typedef uint32_t ctx_option_t;
 #else
-typedef unsigned long ctx_option_t;
+typedef uint64_t ctx_option_t;
 #endif
 
 CURLcode Curl_ossl_add_session(struct Curl_cfilter *cf,