Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sha1dc_git.c')
-rw-r--r--sha1dc_git.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/sha1dc_git.c b/sha1dc_git.c
index 79466414f8..e0cc9d988c 100644
--- a/sha1dc_git.c
+++ b/sha1dc_git.c
@@ -1,5 +1,16 @@
#include "cache.h"
+#ifdef DC_SHA1_EXTERNAL
+/*
+ * Same as SHA1DCInit, but with default save_hash=0
+ */
+void git_SHA1DCInit(SHA1_CTX *ctx)
+{
+ SHA1DCInit(ctx);
+ SHA1DCSetSafeHash(ctx, 0);
+}
+#endif
+
/*
* Same as SHA1DCFinal, but convert collision attack case into a verbose die().
*/