We need the OpenSSL Crypto lib for the DES and MD4 functions to generate NT

and LM hashes.
This commit is contained in:
Simo Sorce
2007-12-07 19:59:27 -05:00
parent 647063253e
commit 441e9206b5
2 changed files with 12 additions and 0 deletions

View File

@@ -130,6 +130,15 @@ dnl ---------------------------------------------------------------------------
PKG_CHECK_MODULES(MOZLDAP, mozldap > 6)
dnl ---------------------------------------------------------------------------
dnl - Check for OpenSSL Crypto library
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_LIB(crypto, DES_set_key_unchecked, [SSL_LIBS="-lcrypto"])
AC_SUBST(SSL_LIBS)
dnl ---------------------------------------------------------------------------
dnl - Check for Python
dnl ---------------------------------------------------------------------------
@@ -251,5 +260,6 @@ echo "
cflags: ${CFLAGS}
LDAP libs: ${LDAP_LIBS}
KRB5 libs: ${KRB5_LIBS}
OpenSSL libs: ${SSL_LIBS}
Maintainer mode: ${USE_MAINTAINER_MODE}
"

View File

@@ -11,6 +11,7 @@ INCLUDES = \
$(MOZLDAP_CFLAGS) \
$(LDAP_CFLAGS) \
$(KRB5_CFLAGS) \
$(SSL_CFLAGS) \
$(WARN_CFLAGS) \
$(NULL)
@@ -27,6 +28,7 @@ libipa_pwd_extop_la_LDFLAGS = -avoid-version
libipa_pwd_extop_la_LIBADD = \
$(KRB5_LIBS) \
$(SSL_LIBS) \
$(MOZLDAP_LIBS) \
$(NULL)