void-packages/srcpkgs/seafile-client-qt/patches/0001-fix-libressl.patch

12 lines
320 B
Diff

--- src/utils/rsa.cpp
+++ src/utils/rsa.cpp
@@ -13,7 +13,7 @@ namespace {
/* Forward compatibility functions if libssl < 1.1.0. */
-#if OPENSSL_VERSION_NUMBER < 0x10100000L
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d)
{