[PATCH] Fix configure check for EVP_CIPHER_CTX_set_iv

Michael Forney mforney at mforney.org
Mon Nov 5 16:41:27 AEDT 2018


This causes EVP_CIPHER_CTX_set_iv to get replaced unnecessarily (or
a duplicate symbol error if linking statically).
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 10696513..199975fe 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2865,7 +2865,7 @@ if test "x$openssl" = "xyes" ; then
 		[AC_DEFINE([HAVE_EVP_CIPHER_CTX_GET_IV], [1],
 		    [Define if libcrypto has EVP_CIPHER_CTX_get_iv])])
 	AC_SEARCH_LIBS([EVP_CIPHER_CTX_set_iv], [crypto],
-		[AC_DEFINE([HAVE_EVP_CIPHER_CTX_GET_IV], [1],
+		[AC_DEFINE([HAVE_EVP_CIPHER_CTX_SET_IV], [1],
 		    [Define if libcrypto has EVP_CIPHER_CTX_set_iv])])
 
 	AC_SEARCH_LIBS([RSA_get0_crt_params], [crypto],
-- 
2.19.1



More information about the openssh-unix-dev mailing list