]> git.sur5r.net Git - openldap/commitdiff
Move crypt(3) prototypes from <ac/unistd.h> to <ac/crypt.h> (new) to
authorKurt Zeilenga <kurt@openldap.org>
Fri, 1 Oct 1999 04:48:30 +0000 (04:48 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Fri, 1 Oct 1999 04:48:30 +0000 (04:48 +0000)
avoid clashes with Kth Kerberos.

clients/tools/ldappasswd.c
include/ac/crypt.h [new file with mode: 0644]
include/ac/unistd.h
libraries/liblutil/passwd.c

index 98aa570fedc14df6465beaaa19dfeee03ca1fea6..ff4cf6420b61f12e8d4d5dc63386dcf122c0a24e 100644 (file)
@@ -30,6 +30,7 @@
 #include <ac/string.h>
 #include <ac/time.h>
 #include <ac/unistd.h>
+#include <ac/crypt.h>
 
 #include <lber.h>
 #include <ldap.h>
diff --git a/include/ac/crypt.h b/include/ac/crypt.h
new file mode 100644 (file)
index 0000000..5c3c153
--- /dev/null
@@ -0,0 +1,25 @@
+/* Generic crypt.h */
+/* $OpenLDAP$ */
+/*
+ * Copyright 1998,1999 The OpenLDAP Foundation, Redwood City, California, USA
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms are permitted only
+ * as authorized by the OpenLDAP Public License.  A copy of this
+ * license is available at http://www.OpenLDAP.org/license.html or
+ * in file LICENSE in the top-level directory of the distribution.
+ */
+
+#ifndef _AC_CRYPT_H
+#define _AC_CRYPT_H
+
+#include <ac/unistd.h>
+
+/* crypt() may be defined in a separate include file */
+#if HAVE_CRYPT_H
+#      include <crypt.h>
+#else
+       extern char *(crypt)();
+#endif
+
+#endif /* _AC_CRYPT_H */
index 7c2fdfc533630d9877911bb1585718c954e42431..32734777e4d1efc9f07b28a87c28b600d2781478 100644 (file)
 #      include <unistd.h>
 #endif
 
-/* crypt() may be defined in a separate include file */
-#if HAVE_CRYPT_H
-#      include <crypt.h>
-#else
-       extern char *(crypt)();
-#endif
+/* note: callers of crypt(3) should include <ac/crypt.h> */
 
 #ifndef HAVE_GETPASS
 LDAP_F(char*)(getpass) LDAP_P((const char *getpass));
index 74c332745a62e7bfe2abc806c3509500e80523c1..6843b8484810baeb630836cc1a03e7883c264f97 100644 (file)
@@ -19,6 +19,7 @@
 
 #include <ac/string.h>
 #include <ac/unistd.h>
+#include <ac/crypt.h>
 
 #include "lutil_md5.h"
 #include "lutil_sha1.h"