]> git.ipfire.org Git - thirdparty/git.git/commit - imap-send.c
imap-send: use HMAC() function provided by OpenSSL
authorKazuki Yamaguchi <k@rhe.jp>
Fri, 8 Apr 2016 16:22:13 +0000 (01:22 +0900)
committerJunio C Hamano <gitster@pobox.com>
Fri, 8 Apr 2016 18:45:47 +0000 (11:45 -0700)
commit1ed2c7b11570f5d16bdc70d151fa78c3dccf6d38
tree9fb56716945fd446dea3bb37401559766c3816cf
parente46579643d56162299b1756b70d418005351b256
imap-send: use HMAC() function provided by OpenSSL

Fix compile errors with OpenSSL 1.1.0.

HMAC_CTX is made opaque and HMAC_CTX_cleanup is removed in OpenSSL
1.1.0. But since we just want to calculate one HMAC, we can use HMAC()
here, which exists since OpenSSL 0.9.6 at least.

Signed-off-by: Kazuki Yamaguchi <k@rhe.jp>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/apple-common-crypto.h
imap-send.c