blob: fb665f8527103cbaf88894081ad9dcd4b885a60f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
From 9a1132d8c8616b67156d49bea89d567ed31d42d6 Mon Sep 17 00:00:00 2001
From: Stefan Strogin <steils@gentoo.org>
Date: Wed, 30 Dec 2020 06:48:40 +0300
Subject: [PATCH] Fix build with LibreSSL
Signed-off-by: Stefan Strogin <steils@gentoo.org>
---
src/socket.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/socket.c b/src/socket.c
index aa2ef4f..fa75de4 100644
--- a/src/socket.c
+++ b/src/socket.c
@@ -143,7 +143,7 @@ open_secure_connection(session *ssn)
goto fail;
if (get_option_boolean("hostnames")) {
-#if OPENSSL_VERSION_NUMBER >= 0x10100000L
+#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
SSL_set_hostflags(ssn->sslconn,
X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS);
if (!SSL_set1_host(ssn->sslconn, ssn->server)) {
--
2.30.0
|