From 80c0eee322a8822ff36c207e6c2e68ab81fd51d0 Mon Sep 17 00:00:00 2001 From: tihmstar Date: Thu, 27 Apr 2017 15:42:07 +0200 Subject: [PATCH] actually fixed the type issue --- futurerestore/futurerestore.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/futurerestore/futurerestore.cpp b/futurerestore/futurerestore.cpp index b9f600eb..f12d94c0 100644 --- a/futurerestore/futurerestore.cpp +++ b/futurerestore/futurerestore.cpp @@ -543,9 +543,9 @@ int futurerestore::doRestore(const char *ipsw){ plist_get_data_val(digest, reinterpret_cast(&sephash), &sephashlen); if (sephashlen == 20) - SHA1(_client->sepfwdata, (unsigned int)_client->sepfwdatasize, genHash); + SHA1((unsigned char*)_client->sepfwdata, (unsigned int)_client->sepfwdatasize, genHash); else - SHA384(_client->sepfwdata, (unsigned int)_client->sepfwdatasize, genHash); + SHA384((unsigned char*)_client->sepfwdata, (unsigned int)_client->sepfwdatasize, genHash); if (memcmp(genHash, sephash, sephashlen)) reterror(-67, "ERROR: SEP does not match sepmanifest\n"); }