mirror of
https://github.com/git/git.git
synced 2024-11-24 10:26:17 +08:00
86cfd61e6b
Add an option to use the sha1collisiondetection library from the submodule in sha1collisiondetection/ instead of in the copy in the sha1dc/ directory. This allows us to try out the submodule in sha1collisiondetection without breaking the build for anyone who's not expecting them as we work out any kinks. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
21 lines
389 B
C
21 lines
389 B
C
#ifndef HASH_H
|
|
#define HASH_H
|
|
|
|
#if defined(SHA1_PPC)
|
|
#include "ppc/sha1.h"
|
|
#elif defined(SHA1_APPLE)
|
|
#include <CommonCrypto/CommonDigest.h>
|
|
#elif defined(SHA1_OPENSSL)
|
|
#include <openssl/sha.h>
|
|
#elif defined(SHA1_DC)
|
|
#ifdef DC_SHA1_SUBMODULE
|
|
#include "sha1collisiondetection/lib/sha1.h"
|
|
#else
|
|
#include "sha1dc/sha1.h"
|
|
#endif
|
|
#else /* SHA1_BLK */
|
|
#include "block-sha1/sha1.h"
|
|
#endif
|
|
|
|
#endif
|