From 616356646159379ab091502cdc90113dc8cc11eb Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Fri, 26 Jun 2026 20:20:01 +0200 Subject: [PATCH] openssl: drop unused pre-OpenSSL3 `ctx_option_t` typedef Follow-up to 69c89bf3d3137fcbb2b8bc57233182adcf1e2817 #18330 Closes #22197 --- lib/vtls/openssl.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c index ceff6266db..caab715b6d 100644 --- a/lib/vtls/openssl.c +++ b/lib/vtls/openssl.c @@ -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,