Move some functions from ldap.c to ldap_util.c.

These will be used by the LDAP innetgr() implementation.
This commit is contained in:
Todd C. Miller
2023-03-10 10:02:36 -07:00
parent 0aad96bba1
commit 554df8d934
4 changed files with 151 additions and 148 deletions

View File

@@ -1,7 +1,7 @@
/*
* SPDX-License-Identifier: ISC
*
* Copyright (c) 2003-2020 Todd C. Miller <Todd.Miller@sudo.ws>
* Copyright (c) 2003-2023 Todd C. Miller <Todd.Miller@sudo.ws>
*
* This code is derived from software contributed by Aaron Spangler.
*
@@ -59,10 +59,6 @@ extern int ldapssl_set_strength(LDAP *ldap, int strength);
# define LDAP_OPT_NETWORK_TIMEOUT LDAP_OPT_CONNECT_TIMEOUT
#endif
#ifndef LDAP_OPT_SUCCESS
# define LDAP_OPT_SUCCESS LDAP_SUCCESS
#endif
#ifndef LDAPS_PORT
# define LDAPS_PORT 636
#endif