summaryrefslogtreecommitdiff
path: root/git-compat-util.h
diff options
context:
space:
mode:
authorReuben Hawkins <reubenhwk@gmail.com>2015-01-08 20:00:57 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-01-09 23:33:57 (GMT)
commit88e011814b9498ee1170d82462a19f72a86f9d82 (patch)
treec681d2e877a8d4554c9ed2c885dd5e737b42a265 /git-compat-util.h
parenta6c3c638acea34116c6be7cc4be41a9bc55a7fa1 (diff)
downloadgit-88e011814b9498ee1170d82462a19f72a86f9d82.zip
git-88e011814b9498ee1170d82462a19f72a86f9d82.tar.gz
git-88e011814b9498ee1170d82462a19f72a86f9d82.tar.bz2
configure.ac: check for HMAC_CTX_cleanup
OpenSSL version 0.9.6b and before defined the function HMAC_cleanup. Newer versions define HMAC_CTX_cleanup. Check for HMAC_CTX_cleanup and fall back to HMAC_cleanup when the newer function is missing. Signed-off-by: Reuben Hawkins <reubenhwk@gmail.com> Reviewed-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-compat-util.h')
-rw-r--r--git-compat-util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/git-compat-util.h b/git-compat-util.h
index b763a4e..09ccebb 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -214,6 +214,9 @@ extern char *gitbasename(char *);
#ifndef NO_OPENSSL
#include <openssl/ssl.h>
#include <openssl/err.h>
+#ifdef NO_HMAC_CTX_CLEANUP
+#define HMAC_CTX_cleanup HMAC_cleanup
+#endif
#endif
/* On most systems <netdb.h> would have given us this, but