Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
openldap
OpenLDAP
Commits
5d552f60
Commit
5d552f60
authored
Jun 26, 2000
by
Kurt Zeilenga
Browse files
Minor cleanup
parent
5d281b96
Changes
1
Show whitespace changes
Inline
Side-by-side
libraries/libldap/ldap-int.h
View file @
5d552f60
/* ldap-int.h - defines & prototypes internal to the LDAP library */
/* $OpenLDAP$ */
/*
* Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved.
...
...
@@ -6,8 +7,6 @@
/* Portions
* Copyright (c) 1995 Regents of the University of Michigan.
* All rights reserved.
*
* ldap-int.h - defines & prototypes internal to the LDAP library
*/
#ifndef _LDAP_INT_H
...
...
@@ -58,17 +57,16 @@ LDAP_BEGIN_DECL
#define LDAPS_URL_PREFIX_LEN (sizeof(LDAPS_URL_PREFIX)-1)
#define LDAPI_URL_PREFIX "ldapi://"
#define LDAPI_URL_PREFIX_LEN (sizeof(LDAPI_URL_PREFIX)-1)
#define LDAPIS_URL_PREFIX "ldapis://"
#define LDAPIS_URL_PREFIX_LEN (sizeof(LDAPIS_URL_PREFIX)-1)
#define LDAP_URL_URLCOLON "URL:"
#define LDAP_URL_URLCOLON_LEN (sizeof(LDAP_URL_URLCOLON)-1)
#define NULLLDAPURLDESC ((LDAPURLDesc *)NULL)
#define CLDAP_URL_PREFIX "cldap://"
#define CLDAP_URL_PREFIX_LEN (sizeof(CLDAP_URL_PREFIX)-1)
#define LDAP_REF_STR "Referral:\n"
#define LDAP_REF_STR_LEN (sizeof(LDAP_REF_STR)-1)
#define LDAP_LDAP_REF_STR LDAP_URL_PREFIX
#define LDAP_LDAP_REF_STR_LEN (sizeof(LDAP_LDAP_REF_STR)-1)
#define LDAP_LDAP_REF_STR_LEN LDAP_URL_PREFIX_LEN
#define LDAP_DEFAULT_REFHOPLIMIT 5
...
...
@@ -78,8 +76,8 @@ LDAP_BEGIN_DECL
#define LDAP_BOOLEANS unsigned long
#define LDAP_BOOL(n) (1 << (n))
#define LDAP_BOOL_GET(lo, bool)
((lo)->ldo_booleans & LDAP_BOOL(bool)
\
?
-1 : 0)
#define LDAP_BOOL_GET(lo, bool) \
((lo)->ldo_booleans & LDAP_BOOL(bool) ?
-1 : 0)
#define LDAP_BOOL_SET(lo, bool) ((lo)->ldo_booleans |= LDAP_BOOL(bool))
#define LDAP_BOOL_CLR(lo, bool) ((lo)->ldo_booleans &= ~LDAP_BOOL(bool))
#define LDAP_BOOL_ZERO(lo) ((lo)->ldo_booleans = 0)
...
...
@@ -134,8 +132,8 @@ struct ldapoptions {
/* LDAPv3 server and client controls */
LDAPControl
**
ldo_sctrls
;
LDAPControl
**
ldo_cctrls
;
/* LDAPV3 rebind callback function
*/
/* LDAP rebind callback function
*/
LDAP_REBIND_PROC
*
ldo_rebindproc
;
#ifdef HAVE_TLS
...
...
@@ -158,7 +156,6 @@ typedef struct ldap_server {
char
*
lsrv_host
;
char
*
lsrv_dn
;
/* if NULL, use default */
int
lsrv_port
;
/* int lsrv_protocol; */
struct
ldap_server
*
lsrv_next
;
}
LDAPServer
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment