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