fix libressl-2.7 compat (#4633)

This commit is contained in:
John Zimmermann 2018-04-28 20:57:02 +02:00 committed by Viktor Oreshkin
parent 647c609bf8
commit a2606c4fc4
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
namespace MTP { namespace MTP {
namespace internal { namespace internal {
namespace { namespace {
#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) #if OPENSSL_VERSION_NUMBER < 0x10100000L || (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL)
// This is a key setter for compatibility with OpenSSL 1.0 // This is a key setter for compatibility with OpenSSL 1.0
int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d) { int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d) {