Skip to content

Commit ef3b574

Browse files
committed
Merge branch 'master' into multicastvnc
2 parents 19a85d2 + f7735c4 commit ef3b574

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/libvncclient/tls_openssl.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,8 @@ open_ssl_connection (rfbClient *client, int sockfd, rfbBool anonTLS, rfbCredenti
329329
} else { /* anonTLS here */
330330
/* Need anonymous ciphers for anonTLS, see https://github.com/LibVNC/libvncserver/issues/347#issuecomment-597477103 */
331331
SSL_CTX_set_cipher_list(ssl_ctx, "aNULL");
332-
#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined LIBRESSL_VERSION_NUMBER
332+
#if OPENSSL_VERSION_NUMBER >= 0x10100000L || \
333+
(defined (LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER >= 0x30600000)
333334
/*
334335
See https://www.openssl.org/docs/man1.1.0/man3/SSL_set_security_level.html
335336
Not specifying 0 here makes LibVNCClient fail connecting to some servers.

0 commit comments

Comments
 (0)