Line 0
Link Here
|
|
|
1 |
--- lib/util/sslreq.c.orig 2021-02-25 13:16:44.922584000 +0100 |
2 |
+++ lib/util/sslreq.c 2021-02-25 13:42:28.500596000 +0100 |
3 |
@@ -8,6 +8,7 @@ |
4 |
#include <stdint.h> |
5 |
#include <string.h> |
6 |
#include <unistd.h> |
7 |
+#include <limits.h> |
8 |
|
9 |
#include <openssl/ssl.h> |
10 |
#include <openssl/x509v3.h> |
11 |
@@ -25,6 +26,7 @@ |
12 |
|
13 |
/* Compatibility for OpenSSL pre-1.1.0 */ |
14 |
#if OPENSSL_VERSION_NUMBER < 0x10100000L |
15 |
+#if !defined(LIBRESSL_VERSION_NUMBER) || LIBRESSL_VERSION_NUMBER < 0x2090000fL |
16 |
static int |
17 |
SSL_set1_host(SSL * ssl, const char * hostname) |
18 |
{ |
19 |
@@ -33,6 +35,7 @@ |
20 |
param = SSL_get0_param(ssl); |
21 |
return (X509_VERIFY_PARAM_set1_host(param, hostname, strlen(hostname))); |
22 |
} |
23 |
+#endif |
24 |
|
25 |
static void |
26 |
SSL_set_hostflags(SSL * ssl, unsigned int flags) |