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

12 lines
377 B
Diff

--- src/options.c
+++ src/options.c
@@ -3656,7 +3656,7 @@ NOEXPORT char *engine_init(void) {
}
#endif
/* engines can add new algorithms */
-#if OPENSSL_VERSION_NUMBER>=0x10100000L
+#if OPENSSL_VERSION_NUMBER>=0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
OPENSSL_init_crypto(OPENSSL_INIT_ADD_ALL_CIPHERS|
OPENSSL_INIT_ADD_ALL_DIGESTS, NULL);
#else