diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-06-12 18:18:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-12 18:18:12 +0200 |
commit | 00fa7e2205877ec34dc3021fd73db6b6ad6bf112 (patch) | |
tree | 10550a3ac2efee0d01e061f0d034caced2461c41 /src/libutil/hash.hh | |
parent | 9f736dd89d064718a378703a9557de56fdd1a734 (diff) | |
parent | ea0d29d99a400c328fa0ca05ba5e639351673ebc (diff) |
Merge pull request #3674 from matthewbauer/allow-empty-hash2
Allow empty hash in derivations
Diffstat (limited to 'src/libutil/hash.hh')
-rw-r--r-- | src/libutil/hash.hh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libutil/hash.hh b/src/libutil/hash.hh index 4ff13f6b2..5080539b2 100644 --- a/src/libutil/hash.hh +++ b/src/libutil/hash.hh @@ -94,6 +94,8 @@ struct Hash } }; +/* Helper that defaults empty hashes to the 0 hash. */ +Hash newHashAllowEmpty(std::string hashStr, HashType ht); /* Print a hash in base-16 if it's MD5, or base-32 otherwise. */ string printHash16or32(const Hash & hash); |