]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
openssl: fix `ctx_option_t` for OpenSSL v3+
authorMarcel Raad <Marcel.Raad@teamviewer.com>
Wed, 26 Jan 2022 13:32:57 +0000 (14:32 +0100)
committerMarcel Raad <Marcel.Raad@teamviewer.com>
Thu, 27 Jan 2022 11:22:18 +0000 (12:22 +0100)
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

index d6f814bc80a9d9572ea340848e01263b7cd3bc83..060531d54347feca30e3b163dbc6fbf83ee537db 100644 (file)
@@ -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