]> git.sur5r.net Git - openldap/commitdiff
fix des.h build issue
authorKurt Zeilenga <kurt@openldap.org>
Fri, 16 Aug 2002 19:30:47 +0000 (19:30 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Fri, 16 Aug 2002 19:30:47 +0000 (19:30 +0000)
libraries/liblutil/passwd.c

index a63b4752556a3ad4fe04484961d424208c60bba5..99b09c37b99b09f14c6ee31dc8ce3349fb01d386 100644 (file)
 #include <ac/string.h>
 #include <ac/unistd.h>
 
-#ifdef SLAPD_LMHASH
-#      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