summaryrefslogtreecommitdiff
path: root/src/sha1.h
diff options
context:
space:
mode:
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>2010-04-28 19:07:14 +0100
committerAndreas Ericsson <ae@op5.se>2010-05-04 21:36:12 +0200
commit38c513b9d1f6c19f191927003c5befd2fa70da9a (patch)
treeb4b1f3118c4afc6034b5f99eddd18f7dbf15e5d5 /src/sha1.h
parent89217d8f1a70da2916d611c989e6b046cdb94fca (diff)
downloadlibgit2-38c513b9d1f6c19f191927003c5befd2fa70da9a.tar.gz
Add support to enable the library to use OpenSSL SHA1 functions
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Diffstat (limited to 'src/sha1.h')
-rw-r--r--src/sha1.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sha1.h b/src/sha1.h
index ac3e84651..f4153cc66 100644
--- a/src/sha1.h
+++ b/src/sha1.h
@@ -1,8 +1,10 @@
#ifndef INCLUDE_sha1_h__
#define INCLUDE_sha1_h__
-#ifdef PPC_SHA1
+#if defined(PPC_SHA1)
# include "ppc/sha1.h"
+#elif defined(OPENSSL_SHA1)
+# include <openssl/sha.h>
#else
# include "block-sha1/sha1.h"
#endif