fixed autoupdate for mac os x version for dev-channel

This commit is contained in:
John Preston 2015-02-06 14:43:25 +00:00
parent d8395beadd
commit 69830d570f
1 changed files with 1 additions and 1 deletions

View File

@ -741,7 +741,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();