Browse code

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>

Emmanuel Deloget authored on 2017/06/29 23:21:19
Showing 2 changed files
... ...
@@ -919,7 +919,6 @@ if test "${enable_crypto}" = "yes" -a "${with_crypto_library}" = "openssl"; then
919 919
 
920 920
 	AC_CHECK_FUNCS(
921 921
 		[ \
922
-			EVP_CIPHER_CTX_free \
923 922
 			HMAC_CTX_new \
924 923
 			HMAC_CTX_free \
925 924
 			HMAC_CTX_reset \
... ...
@@ -88,19 +88,6 @@ EVP_MD_CTX_new(void)
88 88
 }
89 89
 #endif
90 90
 
91
-#if !defined(HAVE_EVP_CIPHER_CTX_FREE)
92
-/**
93
- * Free an existing cipher context
94
- *
95
- * @param ctx                 The cipher context
96
- */
97
-static inline void
98
-EVP_CIPHER_CTX_free(EVP_CIPHER_CTX *c)
99
-{
100
-	free(c);
101
-}
102
-#endif
103
-
104 91
 #if !defined(HAVE_HMAC_CTX_RESET)
105 92
 /**
106 93
  * Reset a HMAC context