telegram-destkop: add libressl-2.7 patch (#13904)
This commit is contained in:
parent
63544867fe
commit
1af0395d42
1 changed files with 13 additions and 0 deletions
13
srcpkgs/telegram-desktop/patches/07-libressl-2.7.patch
Normal file
13
srcpkgs/telegram-desktop/patches/07-libressl-2.7.patch
Normal file
|
@ -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) {
|
Loading…
Add table
Add a link
Reference in a new issue