cocci: apply the "rerere.h" part of "the_repository.pending"
[alt-git.git] / sha1dc_git.h
blob60e3ce84395ceaa70648a828ea1610a7fe9705a6
1 /* Plumbing with collition-detecting SHA1 code */
3 #ifdef DC_SHA1_EXTERNAL
4 #include <sha1dc/sha1.h>
5 #elif defined(DC_SHA1_SUBMODULE)
6 #include "sha1collisiondetection/lib/sha1.h"
7 #else
8 #include "sha1dc/sha1.h"
9 #endif
11 #ifdef DC_SHA1_EXTERNAL
12 void git_SHA1DCInit(SHA1_CTX *);
13 #else
14 #define git_SHA1DCInit SHA1DCInit
15 #endif
17 void git_SHA1DCFinal(unsigned char [20], SHA1_CTX *);
18 void git_SHA1DCUpdate(SHA1_CTX *ctx, const void *data, unsigned long len);
20 #define platform_SHA_IS_SHA1DC /* used by "test-tool sha1-is-sha1dc" */
21 #define platform_SHA_CTX SHA1_CTX
22 #define platform_SHA1_Init git_SHA1DCInit
23 #define platform_SHA1_Update git_SHA1DCUpdate
24 #define platform_SHA1_Final git_SHA1DCFinal