Add case parameter to FormatArrayAsHex

Use upper case where needed for vanilla compatibility
This commit is contained in:
Jonathan G Rennison
2024-03-03 12:05:06 +00:00
parent 9d65fd9c2a
commit 1ba9806002
4 changed files with 10 additions and 6 deletions

View File

@@ -54,7 +54,7 @@ static std::string CalculateHashV1(const std::string &filename)
fclose(f);
crypto_blake2b_final(&ctx, digest.data());
return FormatArrayAsHex(digest);
return FormatArrayAsHex(digest, true);
}
/**
@@ -87,7 +87,7 @@ static bool ValidateChecksum(const std::string &filename, const std::string &che
return false;
}
if (calculated_hash != hash) {
Debug(misc, 0, "Failed to validate signature: checksum mismatch for: {}", filename);
Debug(misc, 0, "Failed to validate signature: checksum mismatch for: {}, {}, {}", filename, calculated_hash, hash);
return false;
}