seafile-client-qt: libressl 2.7 fix

This commit is contained in:
Alessio Sergi 2018-05-03 18:45:23 +02:00
parent 87830ee196
commit de1d395e86

View file

@ -0,0 +1,11 @@
--- src/utils/rsa.cpp.orig
+++ src/utils/rsa.cpp
@@ -13,7 +13,7 @@
/* 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)
{