aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/hash.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/libutil/hash.hh')
-rw-r--r--src/libutil/hash.hh4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libutil/hash.hh b/src/libutil/hash.hh
index 42bd585a2..570e50dd4 100644
--- a/src/libutil/hash.hh
+++ b/src/libutil/hash.hh
@@ -43,9 +43,11 @@ struct Hash
// hash type must be part of string
Hash(std::string_view s);
+ Hash fromSRI(std::string_view original);
+
private:
// type must be provided, s must not include <type> prefix
- Hash(std::string_view s, HashType type);
+ Hash(std::string_view s, std::pair<HashType, bool> typeAndSRI);
void init();