aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/hash.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/libutil/hash.cc')
-rw-r--r--src/libutil/hash.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libutil/hash.cc b/src/libutil/hash.cc
index 7d6b8d96e..1150e74ed 100644
--- a/src/libutil/hash.cc
+++ b/src/libutil/hash.cc
@@ -173,6 +173,11 @@ Hash Hash::parseAny(std::string_view original, std::optional<HashType> optType)
return Hash(rest, hashType, isSRI);
}
+Hash Hash::parseNonSRIUnprefixed(std::string_view s, HashType type)
+{
+ return Hash(s, type, false);
+}
+
Hash::Hash(std::string_view rest, HashType type, bool isSRI)
: Hash(type)
{