From: Marcel Raad Date: Wed, 26 Jan 2022 13:32:57 +0000 (+0100) Subject: openssl: fix `ctx_option_t` for OpenSSL v3+ X-Git-Tag: curl-7_82_0~174 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=610bd89315b3568f983757ad6b4b511d3ff2856f;p=thirdparty%2Fcurl.git 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 --- 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