We do not use openssl/des.h anymore, stop checking and importing it.

Simo.

-- 
Simo Sorce * Red Hat, Inc * New York
>From 5c134863dd6dcaee0493c54178a666068f36e953 Mon Sep 17 00:00:00 2001
From: Simo Sorce <s...@redhat.com>
Date: Fri, 20 Feb 2015 08:52:24 -0500
Subject: [PATCH] Stop including the DES algorythm from openssl.

Since we dropped support for LANMAN hashes we do not need DES from OpenSSL
anymore. Stop including an testing for it.
Test for the MD4 algorythm instead whichis still used for the NT Hashes.

Signed-off-by: Simo Sorce <s...@redhat.com>
---
 daemons/configure.ac | 4 ++--
 util/ipa_pwd_ntlm.c  | 1 -
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/daemons/configure.ac b/daemons/configure.ac
index a62897e96fbf4266b6bada28741b6dcdf482e5f9..97cd25115f371e9e549d209401df9325c7e112c1 100644
--- a/daemons/configure.ac
+++ b/daemons/configure.ac
@@ -132,8 +132,8 @@ dnl ---------------------------------------------------------------------------
 dnl This is a very simple check, we should probably check also for MD4_Init and
 dnl probably also the version we are using is recent enough
 SSL_LIBS=
-AC_CHECK_HEADER(openssl/des.h, [], [AC_MSG_ERROR([openssl/des.h not found])])
-AC_CHECK_LIB(crypto, DES_set_key_unchecked, [SSL_LIBS="-lcrypto"])
+AC_CHECK_HEADER(openssl/md4.h, [], [AC_MSG_ERROR([openssl/md4.h not found])])
+AC_CHECK_LIB(crypto, MD4_Init, [SSL_LIBS="-lcrypto"])
 AC_SUBST(SSL_LIBS)
 
 dnl ---------------------------------------------------------------------------
diff --git a/util/ipa_pwd_ntlm.c b/util/ipa_pwd_ntlm.c
index c6abd4b8a904ba992300285d9727d8aeb2da7da2..e7acb9be719acaa1e69f6b6f33799c79ab6ce965 100644
--- a/util/ipa_pwd_ntlm.c
+++ b/util/ipa_pwd_ntlm.c
@@ -26,7 +26,6 @@
 
 #include <stdbool.h>
 #include <iconv.h>
-#include <openssl/des.h>
 #include <openssl/md4.h>
 #include <dirsrv/slapi-plugin.h>
 
-- 
2.1.0

_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to