mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-15 03:01:09 +08:00
Move crypt(3) prototypes from <ac/unistd.h> to <ac/crypt.h> (new) to
avoid clashes with Kth Kerberos.
This commit is contained in:
parent
52a1da7b70
commit
a284b641b7
@ -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
25
include/ac/crypt.h
Normal 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 */
|
@ -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));
|
||||
|
@ -19,6 +19,7 @@
|
||||
|
||||
#include <ac/string.h>
|
||||
#include <ac/unistd.h>
|
||||
#include <ac/crypt.h>
|
||||
|
||||
#include "lutil_md5.h"
|
||||
#include "lutil_sha1.h"
|
||||
|
Loading…
Reference in New Issue
Block a user