Skip to content

Commit 80c5cde

Browse files
flichtenheldcron2
authored andcommitted
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 <[email protected]> Acked-by: Arne Schwabe <[email protected]> Message-Id: <[email protected]> URL: https://www.mail-archive.com/[email protected]/msg32690.html Signed-off-by: Gert Doering <[email protected]>
1 parent a01c909 commit 80c5cde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/openvpn/ssl_openssl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ tls_ctx_set_options(struct tls_root_ctx *ctx, unsigned int ssl_flags)
308308
ASSERT(NULL != ctx);
309309

310310
/* 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;
312312
#ifdef SSL_OP_CIPHER_SERVER_PREFERENCE
313313
sslopt |= SSL_OP_CIPHER_SERVER_PREFERENCE;
314314
#endif

0 commit comments

Comments
 (0)