View | Details | Raw Unified | Return to bug 227264 | Differences between
and this patch

Collapse All | Expand All

(-)security/stunnel/files/patch-src_common.h (+18 lines)
Line 0 Link Here
1
--- src/common.h.orig	2017-01-02 14:27:26 UTC
2
+++ src/common.h
3
@@ -415,6 +415,15 @@ extern char *sys_errlist[];
4
 /* opensslv.h requires prior opensslconf.h to include -fips in version string */
5
 #include <openssl/opensslv.h>
6
 
7
+#ifdef LIBRESSL_VERSION_NUMBER
8
+#undef OPENSSL_VERSION_NUMBER
9
+#if LIBRESSL_VERSION_NUMBER >= 0x2070000fL
10
+#define OPENSSL_VERSION_NUMBER 0x10100000L
11
+#else
12
+#define OPENSSL_VERSION_NUMBER 0x1000107fL
13
+#endif
14
+#endif
15
+
16
 #if OPENSSL_VERSION_NUMBER<0x0090700fL
17
 #error OpenSSL 0.9.7 or later is required
18
 #endif /* OpenSSL older than 0.9.7 */
(-)security/stunnel/files/patch-src_ctx.c (+11 lines)
Line 0 Link Here
1
--- src/ctx.c.orig	2018-04-03 17:45:50 UTC
2
+++ src/ctx.c
3
@@ -398,7 +398,7 @@ NOEXPORT int ecdh_init(SERVICE_OPTIONS *
4
 /**************************************** initialize OpenSSL CONF */
5
 
6
 NOEXPORT int conf_init(SERVICE_OPTIONS *section) {
7
-#if OPENSSL_VERSION_NUMBER>=0x10002000L
8
+#if OPENSSL_VERSION_NUMBER>=0x10002000L && !defined(LIBRESSL_VERSION_NUMBER)
9
     SSL_CONF_CTX *cctx;
10
     NAME_LIST *curr;
11
     char *cmd, *param;

Return to bug 227264