From 1af0395d42beff0f0440b50050594871ab908518 Mon Sep 17 00:00:00 2001 From: John Zimmermann Date: Fri, 27 Apr 2018 23:17:26 +0200 Subject: [PATCH] telegram-destkop: add libressl-2.7 patch (#13904) --- .../telegram-desktop/patches/07-libressl-2.7.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 srcpkgs/telegram-desktop/patches/07-libressl-2.7.patch diff --git a/srcpkgs/telegram-desktop/patches/07-libressl-2.7.patch b/srcpkgs/telegram-desktop/patches/07-libressl-2.7.patch new file mode 100644 index 00000000000..2c43a8844ac --- /dev/null +++ b/srcpkgs/telegram-desktop/patches/07-libressl-2.7.patch @@ -0,0 +1,13 @@ +diff --git Telegram/SourceFiles/mtproto/rsa_public_key.cpp Telegram/SourceFiles/mtproto/rsa_public_key.cpp +index fcb11979..add50d03 100644 +--- Telegram/SourceFiles/mtproto/rsa_public_key.cpp ++++ Telegram/SourceFiles/mtproto/rsa_public_key.cpp +@@ -16,7 +16,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL + namespace MTP { + namespace internal { + 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 + int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d) {