actually fixed the type issue

This commit is contained in:
tihmstar 2017-04-27 15:42:07 +02:00
parent 920941159a
commit 80c0eee322

View file

@ -543,9 +543,9 @@ int futurerestore::doRestore(const char *ipsw){
plist_get_data_val(digest, reinterpret_cast<char **>(&sephash), &sephashlen); plist_get_data_val(digest, reinterpret_cast<char **>(&sephash), &sephashlen);
if (sephashlen == 20) if (sephashlen == 20)
SHA1(_client->sepfwdata, (unsigned int)_client->sepfwdatasize, genHash); SHA1((unsigned char*)_client->sepfwdata, (unsigned int)_client->sepfwdatasize, genHash);
else else
SHA384(_client->sepfwdata, (unsigned int)_client->sepfwdatasize, genHash); SHA384((unsigned char*)_client->sepfwdata, (unsigned int)_client->sepfwdatasize, genHash);
if (memcmp(genHash, sephash, sephashlen)) if (memcmp(genHash, sephash, sephashlen))
reterror(-67, "ERROR: SEP does not match sepmanifest\n"); reterror(-67, "ERROR: SEP does not match sepmanifest\n");
} }