From: Frank Lichtenheld Date: Tue, 26 Aug 2025 18:41:38 +0000 (+0200) Subject: ssl_openssl: Fix type of sslopts argument to SSL_CTX_set_options X-Git-Tag: v2.7_beta1~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=80c5cdef00fdef89738df1c17441f0bb987ccc97;p=thirdparty%2Fopenvpn.git ssl_openssl: Fix type of sslopts argument to SSL_CTX_set_options The argument changed type in OpenSSL 3.0. Change-Id: Ia5e0aad8a97d38f8d309a29ecfe3c578edff9595 Signed-off-by: Frank Lichtenheld Acked-by: Arne Schwabe Message-Id: <20250826184148.21534-1-gert@greenie.muc.de> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg32690.html Signed-off-by: Gert Doering --- diff --git a/src/openvpn/ssl_openssl.c b/src/openvpn/ssl_openssl.c index 1948d1288..aa1ac11b7 100644 --- a/src/openvpn/ssl_openssl.c +++ b/src/openvpn/ssl_openssl.c @@ -308,7 +308,7 @@ tls_ctx_set_options(struct tls_root_ctx *ctx, unsigned int ssl_flags) ASSERT(NULL != ctx); /* process SSL options */ - long sslopt = SSL_OP_SINGLE_DH_USE | SSL_OP_NO_TICKET; + uint64_t sslopt = SSL_OP_SINGLE_DH_USE | SSL_OP_NO_TICKET; #ifdef SSL_OP_CIPHER_SERVER_PREFERENCE sslopt |= SSL_OP_CIPHER_SERVER_PREFERENCE; #endif