fixed linux autoupdate for dev channel

This commit is contained in:
John Preston 2015-02-06 06:42:43 -08:00
parent 5c8721c429
commit d8395beadd
1 changed files with 1 additions and 1 deletions

View File

@ -1134,7 +1134,7 @@ void PsUpdateDownloader::unpackUpdate() {
return fatalFail();
}
RSA *pbKey = PEM_read_bio_RSAPublicKey(BIO_new_mem_buf(const_cast<char*>(UpdatesPublicKey), -1), 0, 0, 0);
RSA *pbKey = PEM_read_bio_RSAPublicKey(BIO_new_mem_buf(const_cast<char*>(DevChannel ? UpdatesPublicDevKey : UpdatesPublicKey), -1), 0, 0, 0);
if (!pbKey) {
LOG(("Update Error: cant read public rsa key!"));
return fatalFail();