sha1dc: build git plumbing code more explicitly
[git/git.git] / sha1dc_git.h
1 /* Plumbing with collition-detecting SHA1 code */
2
3 #ifdef DC_SHA1_SUBMODULE
4 #include "sha1collisiondetection/lib/sha1.h"
5 #else
6 #include "sha1dc/sha1.h"
7 #endif
8
9 void git_SHA1DCFinal(unsigned char [20], SHA1_CTX *);
10 void git_SHA1DCUpdate(SHA1_CTX *ctx, const void *data, unsigned long len);
11
12 #define platform_SHA_CTX SHA1_CTX
13 #define platform_SHA1_Init SHA1DCInit
14 #define platform_SHA1_Update git_SHA1DCUpdate
15 #define platform_SHA1_Final git_SHA1DCFinal