void-packages/srcpkgs/seafile-client-qt/patches/libressl.patch
2018-05-03 18:45:23 +02:00

11 lines
392 B
Diff

--- 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)
{