logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git

inn-2.6.2_LibreSSL_OpenSSL_1.1.0_ifdef.patch (538B)


  1. diff --git a/nnrpd/tls.c b/nnrpd/tls.c
  2. index 97609c2..1a3dba7 100644
  3. --- a/nnrpd/tls.c
  4. +++ b/nnrpd/tls.c
  5. @@ -501,7 +501,7 @@ tls_init_serverengine(int verifydepth, int askcert, int requirecert,
  6. syslog(L_NOTICE, "starting TLS engine");
  7. /* New functions have been introduced in OpenSSL 1.1.0. */
  8. -#if OPENSSL_VERSION_NUMBER < 0x010100000L
  9. +#if OPENSSL_VERSION_NUMBER < 0x010100000L || defined(LIBRESSL_VERSION_NUMBER)
  10. SSL_load_error_strings();
  11. SSLeay_add_ssl_algorithms();
  12. CTX = SSL_CTX_new(SSLv23_server_method());