Move crypt(3) prototypes from <ac/unistd.h> to <ac/crypt.h> (new) to

avoid clashes with Kth Kerberos.
This commit is contained in:
Kurt Zeilenga 1999-10-01 04:48:30 +00:00
parent 52a1da7b70
commit a284b641b7
4 changed files with 28 additions and 6 deletions

View 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>

25
include/ac/crypt.h Normal file
View File

@ -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 */

View File

@ -21,12 +21,7 @@
# 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));

View 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"