]> git.sur5r.net Git - openldap/commitdiff
ITS#2016 possibly better macro test for this fix
authorHoward Chu <hyc@openldap.org>
Sat, 10 Aug 2002 00:32:25 +0000 (00:32 +0000)
committerHoward Chu <hyc@openldap.org>
Sat, 10 Aug 2002 00:32:25 +0000 (00:32 +0000)
libraries/liblutil/passwd.c

index 0d2d5aa35556238c8ad01b0b078db7e5e9a0df3f..99b09c37b99b09f14c6ee31dc8ce3349fb01d386 100644 (file)
 #include <ac/string.h>
 #include <ac/unistd.h>
 
-/* 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 <openssl/des.h>
-#endif /* SLAPD_LMHASH */
-
 #ifdef SLAPD_SPASSWD
 #      ifdef HAVE_SASL_SASL_H
 #              include <sasl/sasl.h>
 #      include <ac/krb5.h>
 #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 <openssl/des.h>
+#endif /* SLAPD_LMHASH */
+
 #include <ac/param.h>
 
 #ifdef SLAPD_CRYPT