Merge branch 'mh/http-urlmatch-cleanup'
[git/git.git] / sha1dc_git.h
CommitLineData
36f048c5 1/* Plumbing with collition-detecting SHA1 code */
a0103914 2
aa9b3b25 3#ifdef DC_SHA1_EXTERNAL
3964cbbb 4#include <sha1dc/sha1.h>
aa9b3b25
ÆAB
5#elif defined(DC_SHA1_SUBMODULE)
6#include "sha1collisiondetection/lib/sha1.h"
36f048c5
TI
7#else
8#include "sha1dc/sha1.h"
9#endif
a0103914 10
3964cbbb
TI
11#ifdef DC_SHA1_EXTERNAL
12void git_SHA1DCInit(SHA1_CTX *);
13#else
14#define git_SHA1DCInit SHA1DCInit
15#endif
16
36f048c5 17void git_SHA1DCFinal(unsigned char [20], SHA1_CTX *);
a0103914
ÆAB
18void git_SHA1DCUpdate(SHA1_CTX *ctx, const void *data, unsigned long len);
19
20#define platform_SHA_CTX SHA1_CTX
3964cbbb 21#define platform_SHA1_Init git_SHA1DCInit
a0103914
ÆAB
22#define platform_SHA1_Update git_SHA1DCUpdate
23#define platform_SHA1_Final git_SHA1DCFinal