29 lines
868 B
Diff
29 lines
868 B
Diff
From d98d1b76e74948d9c7f966f9c52561a304050afb Mon Sep 17 00:00:00 2001
|
|
From: Anthony Iliopoulos <ailiop@altatus.com>
|
|
Date: Sun, 13 Sep 2020 12:27:12 +0200
|
|
Subject: [PATCH] lftp/ssl: unbreak libressl compilation
|
|
|
|
Commit 537f3789 ("lftp: fix compilation without deprecated OpenSSL
|
|
APIs") broke libressl compilation, fix it.
|
|
|
|
Signed-off-by: Anthony Iliopoulos <ailiop@altatus.com>
|
|
---
|
|
src/lftp_ssl.cc | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git src/lftp_ssl.cc src/lftp_ssl.cc
|
|
index 14a3b9d4..83cbda1b 100644
|
|
--- src/lftp_ssl.cc
|
|
+++ src/lftp_ssl.cc
|
|
@@ -34,7 +34,7 @@
|
|
#include "misc.h"
|
|
#include "network.h"
|
|
#include "buffer.h"
|
|
-#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
|
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
|
|
#define X509_STORE_CTX_get_by_subject X509_STORE_get_by_subject
|
|
#endif
|
|
extern "C" {
|
|
--
|
|
2.28.0
|
|
|