26 lines
730 B
Diff
26 lines
730 B
Diff
|
From 1586d708693b97d2962258419b3f366c439ae540 Mon Sep 17 00:00:00 2001
|
||
|
From: Julian Ospald <hasufell@posteo.de>
|
||
|
Date: Sat, 15 Sep 2018 21:51:53 +0800
|
||
|
Subject: [PATCH] Fix build with libressl-2.7.x
|
||
|
|
||
|
---
|
||
|
src/utils/rsa.cpp | 2 +-
|
||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/src/utils/rsa.cpp b/src/utils/rsa.cpp
|
||
|
index 99babc5..c103700 100644
|
||
|
--- a/src/utils/rsa.cpp
|
||
|
+++ b/src/utils/rsa.cpp
|
||
|
@@ -13,7 +13,7 @@ namespace {
|
||
|
|
||
|
/* Forward compatibility functions if libssl < 1.1.0. */
|
||
|
|
||
|
-#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
|
||
|
+#if OPENSSL_VERSION_NUMBER < 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
|
||
|
|
||
|
int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d)
|
||
|
{
|
||
|
--
|
||
|
2.19.0
|
||
|
|