mirror of
https://github.com/OpenVPN/openvpn.git
synced 2024-11-23 17:53:49 +08:00
OpenSSL: remove EVP_CIPHER_CTX_free() from the compat layer
For unknown reason, the writer of the compat layer seemed to think that this function was only present in OpenSSL 1.1. This is not the case at all, since it has been introduced in OpenSSL before version 0.9.8. Thus, there is no need to add this function to the compat layer, and it can be safely removed. Signed-off-by: Emmanuel Deloget <logout@free.fr> Acked-by: Steffan Karger <steffan.karger@fox-it.com> Message-Id: <20170629142119.29502-2-logout@free.fr> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg14988.html Signed-off-by: Gert Doering <gert@greenie.muc.de>
This commit is contained in:
parent
a72d21a56a
commit
7ee9a94fcb
@ -919,7 +919,6 @@ if test "${enable_crypto}" = "yes" -a "${with_crypto_library}" = "openssl"; then
|
||||
|
||||
AC_CHECK_FUNCS(
|
||||
[ \
|
||||
EVP_CIPHER_CTX_free \
|
||||
HMAC_CTX_new \
|
||||
HMAC_CTX_free \
|
||||
HMAC_CTX_reset \
|
||||
|
@ -88,19 +88,6 @@ EVP_MD_CTX_new(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
#if !defined(HAVE_EVP_CIPHER_CTX_FREE)
|
||||
/**
|
||||
* Free an existing cipher context
|
||||
*
|
||||
* @param ctx The cipher context
|
||||
*/
|
||||
static inline void
|
||||
EVP_CIPHER_CTX_free(EVP_CIPHER_CTX *c)
|
||||
{
|
||||
free(c);
|
||||
}
|
||||
#endif
|
||||
|
||||
#if !defined(HAVE_HMAC_CTX_RESET)
|
||||
/**
|
||||
* Reset a HMAC context
|
||||
|
Loading…
Reference in New Issue
Block a user