Date: Mon, 17 Feb 2020 10:50:38 +0000 (UTC) From: Dima Panov <fluffy@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r526361 - head/news/inn/files Message-ID: <202002171050.01HAocxH021767@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: fluffy Date: Mon Feb 17 10:50:38 2020 New Revision: 526361 URL: https://svnweb.freebsd.org/changeset/ports/526361 Log: news/inn: unbreak with libressl PR: 243642 Approved by: maintainer (timeout >3w) Added: head/news/inn/files/patch-nnrpd_tls.c (contents, props changed) Added: head/news/inn/files/patch-nnrpd_tls.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/news/inn/files/patch-nnrpd_tls.c Mon Feb 17 10:50:38 2020 (r526361) @@ -0,0 +1,20 @@ +--- nnrpd/tls.c.orig 2017-09-12 18:17:21 UTC ++++ nnrpd/tls.c +@@ -495,7 +495,7 @@ tls_init_serverengine(int verifydepth, int askcert, in + syslog(L_NOTICE, "starting TLS engine"); + + /* New functions have been introduced in OpenSSL 1.1.0. */ +-#if OPENSSL_VERSION_NUMBER < 0x010100000L ++#if OPENSSL_VERSION_NUMBER < 0x010100000L || defined(LIBRESSL_VERSION_NUMBER) + SSL_load_error_strings(); + SSLeay_add_ssl_algorithms(); + CTX = SSL_CTX_new(SSLv23_server_method()); +@@ -652,7 +652,7 @@ tls_init_serverengine(int verifydepth, int askcert, in + } + } + +-#if OPENSSL_VERSION_NUMBER >= 0x01010100fL ++#if OPENSSL_VERSION_NUMBER >= 0x01010100fL && !defined(LIBRESSL_VERSION_NUMBER) + /* New API added in OpenSSL 1.1.1 for TLSv1.3 cipher suites. */ + if (tls_ciphers13 != NULL) { + if (SSL_CTX_set_ciphersuites(CTX, tls_ciphers13) == 0) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202002171050.01HAocxH021767>