Back to index

openldap  2.4.31
Classes | Defines | Typedefs | Functions | Variables
ldap_pvt.h File Reference
#include <lber.h>
#include <lber_pvt.h>
#include "ldap_pvt_uc.h"
#include <limits.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  sb_sasl_generic_ops
struct  sb_sasl_generic_install
struct  sb_sasl_generic_data

Defines

#define LDAP_PROTO_TCP   1 /* ldap:// */
#define LDAP_PROTO_UDP   2 /* reserved */
#define LDAP_PROTO_IPC   3 /* ldapi:// */
#define LDAP_PROTO_EXT   4 /* user-defined socket/sockbuf */
#define LDAP_PVT_URL_PARSE_NONE   (0x00U)
#define LDAP_PVT_URL_PARSE_NOEMPTY_HOST   (0x01U)
#define LDAP_PVT_URL_PARSE_DEF_PORT   (0x02U)
#define LDAP_PVT_URL_PARSE_NOEMPTY_DN   (0x04U)
#define LDAP_PVT_URL_PARSE_NODEF_SCOPE   (0x08U)
#define LDAP_PVT_URL_PARSE_HISTORIC
#define LDAP_PVT_CSNSTR_BUFSIZE   64
#define LDAP_ASCII(c)   (!((c) & 0x80))
#define LDAP_SPACE(c)   ((c) == ' ' || (c) == '\t' || (c) == '\n')
#define LDAP_DIGIT(c)   ((c) >= '0' && (c) <= '9')
#define LDAP_LOWER(c)   ((c) >= 'a' && (c) <= 'z')
#define LDAP_UPPER(c)   ((c) >= 'A' && (c) <= 'Z')
#define LDAP_ALPHA(c)   (LDAP_LOWER(c) || LDAP_UPPER(c))
#define LDAP_ALNUM(c)   (LDAP_ALPHA(c) || LDAP_DIGIT(c))
#define LDAP_LDH(c)   (LDAP_ALNUM(c) || (c) == '-')
#define LDAP_HEXLOWER(c)   ((c) >= 'a' && (c) <= 'f')
#define LDAP_HEXUPPER(c)   ((c) >= 'A' && (c) <= 'F')
#define LDAP_HEX(c)
#define LDAP_PVT_SASL_PARTIAL_WRITE   1
#define LDAP_PVT_SASL_LOCAL_SSF   71 /* SSF for Unix Domain Sockets */
#define LDAP_PVT_MP_INIT   (0L)
#define ldap_pvt_mp_init(mp)   do { (mp) = 0; } while (0)
#define ldap_pvt_mp_init_set(mpr, mpv)   do { (mpr) = (mpv); } while (0)
#define ldap_pvt_mp_add(mpr, mpv)   do { (mpr) += (mpv); } while (0)
#define ldap_pvt_mp_add_ulong(mp, v)   do { (mp) += (v); } while (0)
#define ldap_pvt_mp_clear(mp)   do { (mp) = 0; } while (0)
#define LDAP_PVT_INTTYPE_CHARS(type)   (((sizeof(type)*CHAR_BIT-1)*146)/485 + 3)

Typedefs

typedef int LDAPDN_rewrite_dummy LDAP_P ((void *dn, unsigned flags))
typedef voidssl
typedef void voidctx
typedef void void voidarg

Functions

ldap_pvt_url_scheme2proto LDAP_P ((const char *))
ldap_pvt_url_scheme_port LDAP_P ((const char *, int))
ldap_url_parse_ext LDAP_P ((LDAP_CONST char *url, struct ldap_url_desc **ludpp, unsigned flags))
 LDAP_F (int) ldap_url_parselist LDAP_P((struct ldap_url_desc **ludlist
 LDAP_F (char *) ldap_url_list2urls LDAP_P((struct ldap_url_desc *ludlist))
 LDAP_F (void) ldap_free_urllist LDAP_P((struct ldap_url_desc *ludlist))
 LDAP_F (LDAP_CONST char *) ldap_pvt_scope2str LDAP_P((int scope))
ldap_pvt_ctime LDAP_P ((const time_t *tp, char *buf))
ldap_pvt_gmtime LDAP_P ((LDAP_CONST time_t *timep, struct tm *result))
ldap_pvt_gmtime_lock LDAP_P ((void))
ldap_pvt_gettime LDAP_P ((struct lutil_tm *))
 ldap_pvt_csnstr (char *buf, size_t len, unsigned int replica, unsigned int mod)
ldap_pvt_gethostbyname_a LDAP_P ((const char *name, struct hostent *resbuf, char **buf, struct hostent **result, int *herrno_ptr))
ldap_pvt_gethostbyaddr_a LDAP_P ((const char *addr, int len, int type, struct hostent *resbuf, char **buf, struct hostent **result, int *herrno_ptr))
ldap_pvt_get_hname LDAP_P ((const struct sockaddr *sa, int salen, char *name, int namelen, char **herr))
ldap_charray_add LDAP_P ((char ***a, const char *s))
ldap_charray_merge LDAP_P ((char ***a, char **s))
ldap_charray_free LDAP_P ((char **a))
ldap_charray_inlist LDAP_P ((char **a, const char *s))
ldap_str2charray LDAP_P ((const char *str, const char *brkstr))
ldap_charray2str LDAP_P ((char **array, const char *sep))
ldap_pvt_put_control LDAP_P ((const struct ldapcontrol *c, BerElement *ber))
ldap_get_message_ber LDAP_P ((struct ldapmsg *))
ldap_pvt_find_wildcard LDAP_P ((const char *s))
ldap_pvt_filter_value_unescape LDAP_P ((char *filter))
ldap_bv2escaped_filter_value_len LDAP_P ((struct berval *in))
ldap_bv2escaped_filter_value_x LDAP_P ((struct berval *in, struct berval *out, int inplace, void *ctx))
ldap_pvt_str2upper LDAP_P ((char *str))
ldap_pvt_str2upperbv LDAP_P ((char *str, struct berval *bv))
 LDAP_F (void *) ldap_pvt_tls_sb_ctx LDAP_P((Sockbuf *sb))
typedef int (LDAP_TLS_CONNECT_CB) LDAP_P((struct ldap *ld

Variables

LDAP_END_DECL LDAP_BEGIN_DECL
typedef unsigned long 
ldap_pvt_mp_t
const char * url
const char const char * sep
const char const char unsigned flags
struct bervalbv
struct ldapcontrol *** ctrlsp
ber_int_t msgid
ber_socket_t * fdp
int proto
int LDAP_CONST char struct ldap ** ldp
struct sb_sasl_generic_installinstall_arg
const char * str
LDAP_CONST char * base
LDAP_CONST char int scope
LDAP_CONST char int LDAP_CONST
char * 
filter
LDAP_CONST char int LDAP_CONST
char char ** 
attrs
LDAP_CONST char int LDAP_CONST
char char int 
attrsonly
LDAP_CONST char int LDAP_CONST
char char int struct
ldapcontrol ** 
sctrls
LDAP_CONST char int LDAP_CONST
char char int struct
ldapcontrol struct ldapcontrol ** 
cctrls
LDAP_CONST char int LDAP_CONST
char char int struct
ldapcontrol struct ldapcontrol
struct timeval * 
timeout
LDAP_CONST char int LDAP_CONST
char char int struct
ldapcontrol struct ldapcontrol
struct timeval int 
sizelimit
LDAP_CONST char int LDAP_CONST
char char int struct
ldapcontrol struct ldapcontrol
struct timeval int int 
deref
LDAP_CONST char int LDAP_CONST
char char int struct
ldapcontrol struct ldapcontrol
struct timeval int int int
msgidp
LDAP_CONST char int LDAP_CONST
char char int struct
ldapcontrol struct ldapcontrol
struct timeval int int struct
ldapmsg ** 
res
int option
voidctx_arg
struct bervaldn
struct berval
LDAPDN_rewrite_dummy * 
func

Class Documentation

struct sb_sasl_generic_install

Definition at line 291 of file ldap_pvt.h.

Collaboration diagram for sb_sasl_generic_install:
Class Members
struct sb_sasl_generic_ops * ops
void * ops_private
struct sb_sasl_generic_data

Definition at line 296 of file ldap_pvt.h.

Collaboration diagram for sb_sasl_generic_data:
Class Members
Sockbuf_Buf buf_in
Sockbuf_Buf buf_out
unsigned int flags
ber_len_t max_recv
ber_len_t max_send
ber_len_t min_send
struct sb_sasl_generic_ops * ops
void * ops_private
Sockbuf_IO_Desc * sbiod
Sockbuf_Buf sec_buf_in

Define Documentation

#define LDAP_ALNUM (   c)    (LDAP_ALPHA(c) || LDAP_DIGIT(c))

Definition at line 229 of file ldap_pvt.h.

#define LDAP_ALPHA (   c)    (LDAP_LOWER(c) || LDAP_UPPER(c))

Definition at line 228 of file ldap_pvt.h.

#define LDAP_ASCII (   c)    (!((c) & 0x80))

Definition at line 223 of file ldap_pvt.h.

#define LDAP_DIGIT (   c)    ((c) >= '0' && (c) <= '9')

Definition at line 225 of file ldap_pvt.h.

#define LDAP_HEX (   c)
Value:
(LDAP_DIGIT(c) || \
                                                        LDAP_HEXLOWER(c) || LDAP_HEXUPPER(c))

Definition at line 235 of file ldap_pvt.h.

#define LDAP_HEXLOWER (   c)    ((c) >= 'a' && (c) <= 'f')

Definition at line 233 of file ldap_pvt.h.

#define LDAP_HEXUPPER (   c)    ((c) >= 'A' && (c) <= 'F')

Definition at line 234 of file ldap_pvt.h.

#define LDAP_LDH (   c)    (LDAP_ALNUM(c) || (c) == '-')

Definition at line 231 of file ldap_pvt.h.

#define LDAP_LOWER (   c)    ((c) >= 'a' && (c) <= 'z')

Definition at line 226 of file ldap_pvt.h.

#define LDAP_PROTO_EXT   4 /* user-defined socket/sockbuf */

Definition at line 31 of file ldap_pvt.h.

#define LDAP_PROTO_IPC   3 /* ldapi:// */

Definition at line 30 of file ldap_pvt.h.

#define LDAP_PROTO_TCP   1 /* ldap:// */

Definition at line 28 of file ldap_pvt.h.

#define LDAP_PROTO_UDP   2 /* reserved */

Definition at line 29 of file ldap_pvt.h.

#define LDAP_PVT_CSNSTR_BUFSIZE   64

Definition at line 131 of file ldap_pvt.h.

#define LDAP_PVT_INTTYPE_CHARS (   type)    (((sizeof(type)*CHAR_BIT-1)*146)/485 + 3)

Definition at line 533 of file ldap_pvt.h.

#define ldap_pvt_mp_add (   mpr,
  mpv 
)    do { (mpr) += (mpv); } while (0)

Definition at line 513 of file ldap_pvt.h.

#define ldap_pvt_mp_add_ulong (   mp,
  v 
)    do { (mp) += (v); } while (0)

Definition at line 516 of file ldap_pvt.h.

#define ldap_pvt_mp_clear (   mp)    do { (mp) = 0; } while (0)

Definition at line 519 of file ldap_pvt.h.

#define LDAP_PVT_MP_INIT   (0L)

Definition at line 504 of file ldap_pvt.h.

#define ldap_pvt_mp_init (   mp)    do { (mp) = 0; } while (0)

Definition at line 507 of file ldap_pvt.h.

#define ldap_pvt_mp_init_set (   mpr,
  mpv 
)    do { (mpr) = (mpv); } while (0)

Definition at line 510 of file ldap_pvt.h.

#define LDAP_PVT_SASL_LOCAL_SSF   71 /* SSF for Unix Domain Sockets */

Definition at line 311 of file ldap_pvt.h.

Definition at line 307 of file ldap_pvt.h.

#define LDAP_PVT_URL_PARSE_DEF_PORT   (0x02U)

Definition at line 48 of file ldap_pvt.h.

Value:
(LDAP_PVT_URL_PARSE_NODEF_SCOPE | \
                                           LDAP_PVT_URL_PARSE_NOEMPTY_HOST | \
                                           LDAP_PVT_URL_PARSE_DEF_PORT)

Definition at line 51 of file ldap_pvt.h.

#define LDAP_PVT_URL_PARSE_NODEF_SCOPE   (0x08U)

Definition at line 50 of file ldap_pvt.h.

#define LDAP_PVT_URL_PARSE_NOEMPTY_DN   (0x04U)

Definition at line 49 of file ldap_pvt.h.

#define LDAP_PVT_URL_PARSE_NOEMPTY_HOST   (0x01U)

Definition at line 47 of file ldap_pvt.h.

#define LDAP_PVT_URL_PARSE_NONE   (0x00U)

Definition at line 46 of file ldap_pvt.h.

#define LDAP_SPACE (   c)    ((c) == ' ' || (c) == '\t' || (c) == '\n')

Definition at line 224 of file ldap_pvt.h.

#define LDAP_UPPER (   c)    ((c) >= 'A' && (c) <= 'Z')

Definition at line 227 of file ldap_pvt.h.


Typedef Documentation

void * arg

Definition at line 414 of file ldap_pvt.h.

typedef void void* ctx

Definition at line 414 of file ldap_pvt.h.

typedef int LDAPDN_rewrite_dummy LDAP_P((void *dn, unsigned flags))

Definition at line 412 of file ldap_pvt.h.

typedef void* ssl

Definition at line 414 of file ldap_pvt.h.


Function Documentation

typedef int ( LDAP_TLS_CONNECT_CB  )
LDAP_F ( int  )
LDAP_F ( char *  )

Definition at line 30 of file kerberos.c.

                                             {KERBEROS}");
LDAP_F ( void  )
LDAP_F ( LDAP_CONST char *  )
LDAP_F ( void )
ldap_pvt_ctime LDAP_P ( (const time_t *tp, char *buf )
ldap_pvt_gmtime LDAP_P ( (LDAP_CONST time_t *timep, struct tm *result )
ldap_pvt_gettime LDAP_P ( (struct lutil_tm *)  )
ldap_pvt_gethostbyname_a LDAP_P ( (const char *name, struct hostent *resbuf, char **buf, struct hostent **result, int *herrno_ptr)  )
ldap_pvt_gethostbyaddr_a LDAP_P ( (const char *addr, int len, int type, struct hostent *resbuf, char **buf, struct hostent **result, int *herrno_ptr)  )
ldap_pvt_get_hname LDAP_P ( (const struct sockaddr *sa, int salen, char *name, int namelen, char **herr)  )
ldap_charray_add LDAP_P ( (char ***a, const char *s )
ldap_charray_merge LDAP_P ( (char ***a, char **s )
ldap_charray_free LDAP_P ( (char **a )
ldap_charray_inlist LDAP_P ( (char **a, const char *s )
ldap_str2charray LDAP_P ( (const char *str, const char *brkstr )
ldap_charray2str LDAP_P ( (char **array, const char *sep )
ldap_pvt_put_control LDAP_P ( (const struct ldapcontrol *c, BerElement *ber )
ldap_bv2escaped_filter_value_x LDAP_P ( (struct berval *in, struct berval *out, int inplace, void *ctx )
ldap_pvt_str2upper LDAP_P ( (char *str )
ldap_pvt_str2upperbv LDAP_P ( (char *str, struct berval *bv )
ldap_pvt_csnstr ( char *  buf,
size_t  len,
unsigned int  replica,
unsigned int  mod 
)

Definition at line 296 of file util-int.c.

{
       struct lutil_tm tm;
       int n;

       ldap_pvt_gettime( &tm );

       n = snprintf( buf, len,
              "%4d%02d%02d%02d%02d%02d.%06dZ#%06x#%03x#%06x",
              tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday, tm.tm_hour,
              tm.tm_min, tm.tm_sec, tm.tm_usec, tm.tm_usub, replica, mod );

       if( n < 0 ) return 0;
       return ( (size_t) n < len ) ? n : 0;
}

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

Definition at line 357 of file ldap_pvt.h.

Definition at line 357 of file ldap_pvt.h.

Definition at line 357 of file ldap_pvt.h.

struct berval * bv

Definition at line 78 of file ldap_pvt.h.

Definition at line 363 of file ldap_pvt.h.

struct ldapcontrol*** ctrlsp

Definition at line 246 of file ldap_pvt.h.

Definition at line 407 of file ldap_pvt.h.

LDAP_CONST char int LDAP_CONST char char int struct ldapcontrol struct ldapcontrol struct timeval int int deref

Definition at line 364 of file ldap_pvt.h.

struct berval* dn

Definition at line 417 of file ldap_pvt.h.

ber_socket_t* fdp

Definition at line 328 of file ldap_pvt.h.

Definition at line 357 of file ldap_pvt.h.

struct berval LDAPDN_rewrite_dummy unsigned flags

Definition at line 67 of file ldap_pvt.h.

struct berval LDAPDN_rewrite_dummy * func

Definition at line 417 of file ldap_pvt.h.

Definition at line 334 of file ldap_pvt.h.

Definition at line 503 of file ldap_pvt.h.

int LDAP_CONST char struct ldap** ldp

Definition at line 330 of file ldap_pvt.h.

ber_int_t msgid

Definition at line 319 of file ldap_pvt.h.

LDAP_CONST char int LDAP_CONST char char int struct ldapcontrol struct ldapcontrol struct timeval int int int* msgidp

Definition at line 364 of file ldap_pvt.h.

Definition at line 398 of file ldap_pvt.h.

Definition at line 330 of file ldap_pvt.h.

LDAP_CONST char int LDAP_CONST char char int struct ldapcontrol struct ldapcontrol struct timeval int int struct ldapmsg** res

Definition at line 381 of file ldap_pvt.h.

Definition at line 357 of file ldap_pvt.h.

Sockbuf LDAPControl ** sctrls

Definition at line 362 of file ldap_pvt.h.

const char const char* sep

Definition at line 67 of file ldap_pvt.h.

LDAP_CONST char int LDAP_CONST char char int struct ldapcontrol struct ldapcontrol struct timeval int sizelimit

Definition at line 364 of file ldap_pvt.h.

const char * str

Definition at line 340 of file ldap_pvt.h.

LDAP_CONST char int LDAP_CONST char char int struct ldapcontrol struct ldapcontrol struct timeval * timeout

Definition at line 364 of file ldap_pvt.h.

Definition at line 63 of file ldap_pvt.h.