diff options
author | Michael Schubert <schu@schu.io> | 2012-10-24 15:46:15 +0200 |
---|---|---|
committer | Michael Schubert <schu@schu.io> | 2012-10-24 15:46:15 +0200 |
commit | ab2af775ec467ebb328a7374653f247920f258f3 (patch) | |
tree | dfcb09fadc67bc28a99bffcb8b751d426024974c /src/sha1.h | |
parent | 90fefe87d87b08010a1ea10ae496a4b0ee630f5e (diff) | |
parent | 6f6b0c013c6eff2aca2a7ada1027044f2e20f578 (diff) | |
download | libgit2-features/push_old.tar.gz |
Merge branch 'development' into gsoc-pushfeatures/push_old
Diffstat (limited to 'src/sha1.h')
-rw-r--r-- | src/sha1.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/sha1.h b/src/sha1.h index f0a16f2cf..41e8abad6 100644 --- a/src/sha1.h +++ b/src/sha1.h @@ -8,12 +8,17 @@ #ifndef INCLUDE_sha1_h__ #define INCLUDE_sha1_h__ +#ifdef OPENSSL_SHA +# include <openssl/sha.h> + +#else typedef struct { unsigned long long size; unsigned int H[5]; unsigned int W[16]; } blk_SHA_CTX; + void git__blk_SHA1_Init(blk_SHA_CTX *ctx); void git__blk_SHA1_Update(blk_SHA_CTX *ctx, const void *dataIn, size_t len); void git__blk_SHA1_Final(unsigned char hashout[20], blk_SHA_CTX *ctx); @@ -23,4 +28,6 @@ void git__blk_SHA1_Final(unsigned char hashout[20], blk_SHA_CTX *ctx); #define SHA1_Update git__blk_SHA1_Update #define SHA1_Final git__blk_SHA1_Final +#endif // OPENSSL_SHA + #endif |