aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/hash.cc
diff options
context:
space:
mode:
authorCarlo Nucera <carlo.nucera@protonmail.com>2020-07-02 11:34:40 -0400
committerCarlo Nucera <carlo.nucera@protonmail.com>2020-07-02 11:34:40 -0400
commitb6b10b1d4cb1cd487bbb5d2cc063ca743ae79004 (patch)
tree80fd8a3bdb90a81cf740cef1ba127a9501081b78 /src/libutil/hash.cc
parentea48e3a5b5f1051c251184792417326c513bf00f (diff)
Write the implementation for parseNonSRIUnprefixed
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)
{