From ef76a754f0475051a2c940799314a6bb802f3d78 Mon Sep 17 00:00:00 2001 From: lightbulblighter <59720715+lightbulblighter@users.noreply.github.com> Date: Sat, 4 Jun 2022 03:30:16 -0700 Subject: [PATCH] backwards compatibility --- PolygonClientUtilities/Crypt.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/PolygonClientUtilities/Crypt.cpp b/PolygonClientUtilities/Crypt.cpp index 18c6913..f4f01e9 100644 --- a/PolygonClientUtilities/Crypt.cpp +++ b/PolygonClientUtilities/Crypt.cpp @@ -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