From 80c5cdef00fdef89738df1c17441f0bb987ccc97 Mon Sep 17 00:00:00 2001 From: Frank Lichtenheld Date: Tue, 26 Aug 2025 20:41:38 +0200 Subject: [PATCH] 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 --- src/openvpn/ssl_openssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.3