From 610bd89315b3568f983757ad6b4b511d3ff2856f Mon Sep 17 00:00:00 2001 From: Marcel Raad Date: Wed, 26 Jan 2022 14:32:57 +0100 Subject: [PATCH] openssl: fix `ctx_option_t` for OpenSSL v3+ The options have been changed to `uint64_t` in https://github.com/openssl/openssl/commit/56bd17830f2d5855b533d923d4e0649d3ed61d11. Closes https://github.com/curl/curl/pull/8331 --- lib/vtls/openssl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c index d6f814bc80..060531d543 100644 --- a/lib/vtls/openssl.c +++ b/lib/vtls/openssl.c @@ -2424,6 +2424,8 @@ set_ssl_version_min_max(SSL_CTX *ctx, struct connectdata *conn) #ifdef OPENSSL_IS_BORINGSSL typedef uint32_t ctx_option_t; +#elif OPENSSL_VERSION_NUMBER >= 0x30000000L +typedef uint64_t ctx_option_t; #else typedef long ctx_option_t; #endif -- 2.47.3