From: Howard Chu Date: Sat, 10 Aug 2002 00:32:25 +0000 (+0000) Subject: ITS#2016 possibly better macro test for this fix X-Git-Tag: NO_SLAP_OP_BLOCKS~1249 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4c69827b15676f03ee87cc81c0826a32a07131b2;p=openldap ITS#2016 possibly better macro test for this fix --- diff --git a/libraries/liblutil/passwd.c b/libraries/liblutil/passwd.c index 0d2d5aa355..99b09c37b9 100644 --- a/libraries/liblutil/passwd.c +++ b/libraries/liblutil/passwd.c @@ -23,14 +23,6 @@ #include #include -/* KPASSWD/krb.h brings in a conflicting des.h so don't use both. - * configure currently requires OpenSSL to enable LMHASH. Obviously - * this requirement can be fulfilled by the KRB DES library as well. - */ -#if defined(SLAPD_LMHASH) && !defined(SLAPD_KPASSWD) -# include -#endif /* SLAPD_LMHASH */ - #ifdef SLAPD_SPASSWD # ifdef HAVE_SASL_SASL_H # include @@ -44,6 +36,14 @@ # include #endif +/* KPASSWD/krb.h brings in a conflicting des.h so don't use both. + * configure currently requires OpenSSL to enable LMHASH. Obviously + * this requirement can be fulfilled by the KRB DES library as well. + */ +#if defined(SLAPD_LMHASH) && !defined(DES_ENCRYPT) +# include +#endif /* SLAPD_LMHASH */ + #include #ifdef SLAPD_CRYPT