Auto-update fix -- signature is in hex.

This commit is contained in:
Adam Ierymenko 2015-06-03 16:25:16 -07:00
parent b897ec1efd
commit fe87136870

View File

@ -210,7 +210,7 @@ public:
return;
}
std::string ed25519(nfo.get("ed25519",""));
std::string ed25519(Utils::unhex(nfo.get("ed25519","")));
if ((ed25519.length() == 0)||(!signedBy.verify(fileData.data(),(unsigned int)fileData.length(),ed25519.data(),(unsigned int)ed25519.length()))) {
//fprintf(stderr,"UPDATE %s failed signature check!\n",filePath.c_str());
return;