backwards compatibility

This commit is contained in:
lightbulblighter 2022-06-04 03:30:16 -07:00
parent 709f4a05cd
commit ef76a754f0
No known key found for this signature in database
GPG Key ID: 0B2452F9DE0E2D01
1 changed files with 4 additions and 1 deletions

View File

@ -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