Skip to content

Commit f7735c4

Browse files
committed
libvncclient: tls_openssl: fix connection setup w/ newer LibreSSL
This needs the security level setting as well. re bk138/multivnc#245
1 parent 2a23c44 commit f7735c4

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)