diff options
author | Dima Panov <fluffy@FreeBSD.org> | 2020-02-17 10:50:38 +0000 |
---|---|---|
committer | Dima Panov <fluffy@FreeBSD.org> | 2020-02-17 10:50:38 +0000 |
commit | 82d4ba752e75dde569b575df49e2e0ad2e143f51 (patch) | |
tree | 4f625cf36272534aada7e97dc90aae95d83bbbc5 /news | |
parent | - Update to 1.5.6 (diff) |
news/inn: unbreak with libressl
PR: 243642
Approved by: maintainer (timeout >3w)
Notes
Notes:
svn path=/head/; revision=526361
Diffstat (limited to 'news')
-rw-r--r-- | news/inn/files/patch-nnrpd_tls.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/news/inn/files/patch-nnrpd_tls.c b/news/inn/files/patch-nnrpd_tls.c new file mode 100644 index 000000000000..7a69f991b9f1 --- /dev/null +++ b/news/inn/files/patch-nnrpd_tls.c @@ -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) { |