Line 0
Link Here
|
|
|
1 |
--- src/ssl.c.orig 2017-10-07 14:23:08 UTC |
2 |
+++ src/ssl.c |
3 |
@@ -51,7 +51,7 @@ int index_ssl_cli, index_ssl_ctx_opt; |
4 |
int index_session_authenticated, index_session_connect_address; |
5 |
|
6 |
int ssl_init(void) { /* init TLS before parsing configuration file */ |
7 |
-#if OPENSSL_VERSION_NUMBER>=0x10100000L |
8 |
+#if OPENSSL_VERSION_NUMBER>=0x10100000L && !defined(LIBRESSL_VERSION_NUMBER) |
9 |
OPENSSL_init_ssl(OPENSSL_INIT_LOAD_SSL_STRINGS | |
10 |
OPENSSL_INIT_LOAD_CRYPTO_STRINGS | OPENSSL_INIT_LOAD_CONFIG, NULL); |
11 |
#else |
12 |
@@ -87,7 +87,7 @@ int ssl_init(void) { /* init TLS before |
13 |
} |
14 |
|
15 |
#ifndef OPENSSL_NO_DH |
16 |
-#if OPENSSL_VERSION_NUMBER<0x10100000L |
17 |
+#if OPENSSL_VERSION_NUMBER<0x10100000L || defined(LIBRESSL_VERSION_NUMBER) |
18 |
/* this is needed for dhparam.c generated with OpenSSL >= 1.1.0 |
19 |
* to be linked against the older versions */ |
20 |
int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g) { |