From 21014f3be3e4f8ebf34243f4f10841f0fb0b3843 Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Mon, 22 Jul 2024 16:41:52 +0200 Subject: Rename HashFunction methods and enums --- src/buildtool/main/install_cas.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/buildtool/main/install_cas.cpp') diff --git a/src/buildtool/main/install_cas.cpp b/src/buildtool/main/install_cas.cpp index 3c460200..024d22c7 100644 --- a/src/buildtool/main/install_cas.cpp +++ b/src/buildtool/main/install_cas.cpp @@ -35,7 +35,7 @@ namespace { // Only in compatible mode the size is checked, so an empty SHA256 hash is // needed. static auto const kEmptyHash = - HashFunction{HashFunction::JustHash::Compatible}.ComputeBlobHash(""); + HashFunction{HashFunction::Type::PlainSHA256}.HashBlobData(""); return Compatibility::IsCompatible() and // native mode is fine (size_str == "0" or size_str.empty()) and // not "0" or "" is fine kEmptyHash.HexString() != hash and // empty hash is fine -- cgit v1.2.3