From d8395beadd85ce039e90df465ebabb2f7a7c75d9 Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 6 Feb 2015 06:42:43 -0800 Subject: [PATCH] fixed linux autoupdate for dev channel --- Telegram/SourceFiles/pspecific_linux.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/pspecific_linux.cpp b/Telegram/SourceFiles/pspecific_linux.cpp index 324da58dfa..c5e153f893 100644 --- a/Telegram/SourceFiles/pspecific_linux.cpp +++ b/Telegram/SourceFiles/pspecific_linux.cpp @@ -1134,7 +1134,7 @@ void PsUpdateDownloader::unpackUpdate() { return fatalFail(); } - RSA *pbKey = PEM_read_bio_RSAPublicKey(BIO_new_mem_buf(const_cast(UpdatesPublicKey), -1), 0, 0, 0); + RSA *pbKey = PEM_read_bio_RSAPublicKey(BIO_new_mem_buf(const_cast(DevChannel ? UpdatesPublicDevKey : UpdatesPublicKey), -1), 0, 0, 0); if (!pbKey) { LOG(("Update Error: cant read public rsa key!")); return fatalFail();