summaryrefslogtreecommitdiffstats
path: root/git-compat-util.h
diff options
context:
space:
mode:
authorReuben Hawkins <reubenhwk@gmail.com>2015-01-08 21:00:57 +0100
committerJunio C Hamano <gitster@pobox.com>2015-01-10 00:33:57 +0100
commit88e011814b9498ee1170d82462a19f72a86f9d82 (patch)
treec681d2e877a8d4554c9ed2c885dd5e737b42a265 /git-compat-util.h
parentconfigure.ac: check for clock_gettime and CLOCK_MONOTONIC (diff)
downloadgit-88e011814b9498ee1170d82462a19f72a86f9d82.tar.xz
git-88e011814b9498ee1170d82462a19f72a86f9d82.zip
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 '')
-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 b763a4e269..09ccebbd49 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