about summary refs log tree commit diff
path: root/src/libutil/hash.hh
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2006-09-20T16·15+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2006-09-20T16·15+0000
commit0623359fbc67c421bf76b7433f92c7ef58050321 (patch)
treeb0621f97bbbea2ae2ad69a89284454aa1f0c85c0 /src/libutil/hash.hh
parent22d13d6ec27b02f98ca4e398fbae4f3273e97794 (diff)
* Print a better error message for wrong hashes (NIX-49).
Diffstat (limited to 'src/libutil/hash.hh')
-rw-r--r--src/libutil/hash.hh3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libutil/hash.hh b/src/libutil/hash.hh
index 95629bc9e5ba..74ae51db3286 100644
--- a/src/libutil/hash.hh
+++ b/src/libutil/hash.hh
@@ -49,6 +49,9 @@ string printHash(const Hash & hash);
 /* Parse a hexadecimal representation of a hash code. */
 Hash parseHash(HashType ht, const string & s);
 
+/* Returns the length of a base-32 hash representation. */
+unsigned int hashLength32(const Hash & hash);
+
 /* Convert a hash to a base-32 representation. */
 string printHash32(const Hash & hash);