From 88e011814b9498ee1170d82462a19f72a86f9d82 Mon Sep 17 00:00:00 2001 From: Reuben Hawkins Date: Thu, 8 Jan 2015 12:00:57 -0800 Subject: 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 Reviewed-by: Eric Sunshine Signed-off-by: Junio C Hamano --- git-compat-util.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'git-compat-util.h') 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 #include +#ifdef NO_HMAC_CTX_CLEANUP +#define HMAC_CTX_cleanup HMAC_cleanup +#endif #endif /* On most systems would have given us this, but -- cgit v1.2.3