diff options
Diffstat (limited to 'sha1dc_git.c')
-rw-r--r-- | sha1dc_git.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sha1dc_git.c b/sha1dc_git.c index e0cc9d9..9b675a0 100644 --- a/sha1dc_git.c +++ b/sha1dc_git.c @@ -1,4 +1,6 @@ -#include "cache.h" +#include "git-compat-util.h" +#include "sha1dc_git.h" +#include "hex.h" #ifdef DC_SHA1_EXTERNAL /* @@ -19,7 +21,7 @@ void git_SHA1DCFinal(unsigned char hash[20], SHA1_CTX *ctx) if (!SHA1DCFinal(hash, ctx)) return; die("SHA-1 appears to be part of a collision attack: %s", - sha1_to_hex(hash)); + hash_to_hex_algop(hash, &hash_algos[GIT_HASH_SHA1])); } /* |