aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/hash.hh
diff options
context:
space:
mode:
authorCarlo Nucera <carlo.nucera@protonmail.com>2020-07-01 17:32:06 -0400
committerCarlo Nucera <carlo.nucera@protonmail.com>2020-07-01 17:32:06 -0400
commitc2e7f7a7129fc5366a4cad337fcd6ae319a58ce5 (patch)
tree86d0ccdd3ad6d5ecc85263a51cddf8ea9ba30547 /src/libutil/hash.hh
parentb798efb829415eb47a532e9479523afdff74eca7 (diff)
Fixed build, we still have test errors
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();