backwards compatibility
This commit is contained in:
parent
709f4a05cd
commit
ef76a754f0
|
|
@ -51,7 +51,10 @@ void Crypt::verifySignatureBase64(std::string message, std::string signatureBase
|
|||
|
||||
if (!CryptCreateHash(context, CALG_SHA_256, NULL, 0, &hash))
|
||||
{
|
||||
throw std::runtime_error("");
|
||||
if (!CryptCreateHash(context, CALG_SHA1, NULL, 0, &hash))
|
||||
{
|
||||
throw std::runtime_error("");
|
||||
}
|
||||
}
|
||||
|
||||
try
|
||||
|
|
|
|||
Loading…
Reference in New Issue