void-packages/srcpkgs/stunnel/patches/stunnel-5.39.patch

12 lines
481 B
Diff

--- src/ssl.c.orig 2017-01-25 00:19:22.320035678 -0500
+++ src/ssl.c 2017-01-25 00:19:26.536104001 -0500
@@ -50,7 +50,7 @@
int index_cli, index_opt, index_redirect, index_addr;
int ssl_init(void) { /* init TLS before parsing configuration file */
-#if OPENSSL_VERSION_NUMBER>=0x10100000L
+#if OPENSSL_VERSION_NUMBER>=0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
OPENSSL_init_ssl(OPENSSL_INIT_LOAD_SSL_STRINGS |
OPENSSL_INIT_LOAD_CRYPTO_STRINGS, NULL);
#else