]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
ssl_openssl: Fix type of sslopts argument to SSL_CTX_set_options
authorFrank Lichtenheld <frank@lichtenheld.com>
Tue, 26 Aug 2025 18:41:38 +0000 (20:41 +0200)
committerGert Doering <gert@greenie.muc.de>
Tue, 2 Sep 2025 18:27:28 +0000 (20:27 +0200)
The argument changed type in OpenSSL 3.0.

Change-Id: Ia5e0aad8a97d38f8d309a29ecfe3c578edff9595
Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
Acked-by: Arne Schwabe <arne-openvpn@rfc2549.org>
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 <gert@greenie.muc.de>
src/openvpn/ssl_openssl.c

index 1948d12885a6e0eb445b99c6c55f8e96d35fc9a5..aa1ac11b764883558b50949942533d8455099c3a 100644 (file)
@@ -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