openssl: fix ctx_option_t for OpenSSL v3+

The options have been changed to `uint64_t` in
56bd17830f.

Closes https://github.com/curl/curl/pull/8331
This commit is contained in:
Marcel Raad 2022-01-26 14:32:57 +01:00
parent 54a3179ebc
commit 610bd89315
No known key found for this signature in database
GPG Key ID: 33C416EFAE4D6F02

View 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