summaryrefslogtreecommitdiff
path: root/net-misc/seafile-client/files/seafile-client-7.0.9-libressl.patch
blob: d7fdc2201d12e64c8ece30f188ff7d9b235d201c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Upstream pull request: https://github.com/haiwen/seafile-client/pull/1314
diff --git a/src/utils/rsa.cpp b/src/utils/rsa.cpp
index 350b790..513733d 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) && LIBRESSL_VERSION_NUMBER < 0x2070000fL)
 
 int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d)
 {