Browse code

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 <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>

Frank Lichtenheld authored on 2025/08/27 03:41:38
Showing 1 changed files
... ...
@@ -308,7 +308,7 @@ tls_ctx_set_options(struct tls_root_ctx *ctx, unsigned int ssl_flags)
308 308
     ASSERT(NULL != ctx);
309 309
 
310 310
     /* process SSL options */
311
-    long sslopt = SSL_OP_SINGLE_DH_USE | SSL_OP_NO_TICKET;
311
+    uint64_t sslopt = SSL_OP_SINGLE_DH_USE | SSL_OP_NO_TICKET;
312 312
 #ifdef SSL_OP_CIPHER_SERVER_PREFERENCE
313 313
     sslopt |= SSL_OP_CIPHER_SERVER_PREFERENCE;
314 314
 #endif