Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Typedefs | Functions | Variables
lber.h File Reference
#include <stdlib.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  berval
struct  ldap_x_iovec
struct  lber_x_ext_io_fns
struct  lber_memalloc_fns

Defines

#define LBER_ERROR   0xffffffffUL
#define LBER_DEFAULT   0xffffffffUL
#define LBER_END_OF_SEQORSET   0xfffffffeUL
#define LBER_CLASS_UNIVERSAL   0x00
#define LBER_CLASS_APPLICATION   0x40
#define LBER_CLASS_CONTEXT   0x80
#define LBER_CLASS_PRIVATE   0xc0
#define LBER_CLASS_MASK   0xc0
#define LBER_PRIMITIVE   0x00
#define LBER_CONSTRUCTED   0x20
#define LBER_ENCODING_MASK   0x20
#define LBER_BIG_TAG_MASK   0x1f
#define LBER_MORE_TAG_MASK   0x80
#define LBER_BOOLEAN   0x01L
#define LBER_INTEGER   0x02L
#define LBER_BITSTRING   0x03L
#define LBER_OCTETSTRING   0x04L
#define LBER_NULL   0x05L
#define LBER_ENUMERATED   0x0aL
#define LBER_SEQUENCE   0x30L
#define LBER_SET   0x31L
#define LBER_OPT_REMAINING_BYTES   0x01
#define LBER_OPT_TOTAL_BYTES   0x02
#define LBER_OPT_USE_DER   0x04
#define LBER_OPT_TRANSLATE_STRINGS   0x08
#define LBER_OPT_BYTES_TO_WRITE   0x10
#define LBER_OPT_MEMALLOC_FN_PTRS   0x20
#define LBER_OPT_DEBUG_LEVEL   0x40
#define LBER_USE_DER   0x01
#define LBER_SOCKBUF_OPT_TO_FILE   0x001
#define LBER_SOCKBUF_OPT_TO_FILE_ONLY   0x002
#define LBER_SOCKBUF_OPT_MAX_INCOMING_SIZE   0x004
#define LBER_SOCKBUF_OPT_NO_READ_AHEAD   0x008
#define LBER_SOCKBUF_OPT_DESC   0x010
#define LBER_SOCKBUF_OPT_COPYDESC   0x020
#define LBER_SOCKBUF_OPT_READ_FN   0x040
#define LBER_SOCKBUF_OPT_WRITE_FN   0x080
#define LBER_SOCKBUF_OPT_EXT_IO_FNS   0x100
#define LBER_SOCKBUF_OPT_VALID_TAG   0x200
#define LBER_OPT_ON   ((void *) 1)
#define LBER_OPT_OFF   ((void *) 0)
#define LDAP_C
#define LDAP_CALLBACK
#define LDAP_PASCAL
#define LDAP_CALL
#define LDAP_API(rt)   rt
#define LBER_X_EXTIO_FNS_SIZE   sizeof(struct lber_x_ext_io_fns)

Typedefs

typedef struct berval BerValue
typedef struct berelement
typedef struct sockbuf
typedef int(* BERTranslateProc )(char **bufp, unsigned long *buflenp, int free_input)
typedef int LBER_SOCKET
typedef struct ldap_x_iovec ldap_x_iovec
typedef voidbuf = aResult.BeginWriting()
typedef void int bufsize
typedef const void int len
typedef void int struct
lextiof_socket_private
socketarg
typedef const ldap_x_iovec iov []
typedef const ldap_x_iovec int iovcnt
typedef void *LDAP_C LDAP_CALLBACK LDAP_MALLOC_CALLBACK (size_t size)
typedef void *LDAP_C LDAP_CALLBACK LDAP_CALLOC_CALLBACK (size_t nelem, size_t elsize)
typedef void *LDAP_C LDAP_CALLBACK LDAP_REALLOC_CALLBACK (void *ptr, size_t size)

Functions

typedef int (LDAP_C LDAP_CALLBACK LDAP_IOF_READ_CALLBACK)(LBER_SOCKET s
typedef void (LDAP_C LDAP_CALLBACK LDAP_FREE_CALLBACK)(void *ptr)
 LDAP_API (unsigned long) LDAP_CALL ber_get_tag(BerElement *ber)
const char LDAP_API (void) LDAP_CALL ber_bvfree(struct berval *bv)
 LDAP_API (struct berval *) LDAP_CALL ber_bvdup(const struct berval *bv)
 LDAP_API (BerElement *) LDAP_CALL ber_init(const struct berval *bv)
 LDAP_API (void *) LDAP_CALL ber_special_alloc(size_t size
 LDAP_API (Sockbuf *) LDAP_CALL ber_sockbuf_alloc(void)

Variables

longnum
struct berval ** bv
intboolval
unsigned long char ** last
const char * fmt
BERTranslateProc encode_proc
BERTranslateProc BERTranslateProc decode_proc
long unsigned long tag
char * str
char unsigned long bitlen
const char struct berval ** bvPtr
int freebuf
BerElement * ber
BerElement int freeit
BerElement ** ppBer
size_t buffer_size
size_t unsigned long
BerElement unsigned long
Bytes_Scanned
size_t unsigned long
BerElement unsigned long
Sockbuf * 
sb
char unsigned long int nosos
int options
int was_writing
int option
int voidvalue

Class Documentation

struct berval

Definition at line 116 of file lber.h.

Class Members
unsigned long bv_len
char * bv_val
struct ldap_x_iovec

Definition at line 171 of file lber.h.

Collaboration diagram for ldap_x_iovec:
Class Members
char * ldapiov_base
int ldapiov_len
struct lber_x_ext_io_fns

Definition at line 195 of file lber.h.

Collaboration diagram for lber_x_ext_io_fns:
Class Members
LDAP_X_EXTIOF_READ_CALLBACK * lbextiofn_read
int lbextiofn_size
struct lextiof_socket_private * lbextiofn_socket_arg
LDAP_X_EXTIOF_WRITE_CALLBACK * lbextiofn_write
LDAP_X_EXTIOF_WRITEV_CALLBACK * lbextiofn_writev
struct lber_memalloc_fns

Definition at line 217 of file lber.h.

Class Members
LDAP_CALLOC_CALLBACK * lbermem_calloc
LDAP_FREE_CALLBACK * lbermem_free
LDAP_MALLOC_CALLBACK * lbermem_malloc
LDAP_REALLOC_CALLBACK * lbermem_realloc

Define Documentation

Definition at line 69 of file lber.h.

#define LBER_BITSTRING   0x03L

Definition at line 75 of file lber.h.

#define LBER_BOOLEAN   0x01L

Definition at line 73 of file lber.h.

Definition at line 59 of file lber.h.

Definition at line 60 of file lber.h.

#define LBER_CLASS_MASK   0xc0

Definition at line 62 of file lber.h.

Definition at line 61 of file lber.h.

Definition at line 58 of file lber.h.

Definition at line 66 of file lber.h.

#define LBER_DEFAULT   0xffffffffUL

Definition at line 54 of file lber.h.

Definition at line 67 of file lber.h.

#define LBER_END_OF_SEQORSET   0xfffffffeUL

Definition at line 55 of file lber.h.

#define LBER_ENUMERATED   0x0aL

Definition at line 78 of file lber.h.

#define LBER_ERROR   0xffffffffUL

Definition at line 53 of file lber.h.

#define LBER_INTEGER   0x02L

Definition at line 74 of file lber.h.

Definition at line 70 of file lber.h.

#define LBER_NULL   0x05L

Definition at line 77 of file lber.h.

#define LBER_OCTETSTRING   0x04L

Definition at line 76 of file lber.h.

Definition at line 87 of file lber.h.

Definition at line 89 of file lber.h.

Definition at line 88 of file lber.h.

#define LBER_OPT_OFF   ((void *) 0)

Definition at line 113 of file lber.h.

#define LBER_OPT_ON   ((void *) 1)

Definition at line 112 of file lber.h.

Definition at line 83 of file lber.h.

Definition at line 84 of file lber.h.

Definition at line 86 of file lber.h.

Definition at line 85 of file lber.h.

#define LBER_PRIMITIVE   0x00

Definition at line 65 of file lber.h.

#define LBER_SEQUENCE   0x30L

Definition at line 79 of file lber.h.

#define LBER_SET   0x31L

Definition at line 80 of file lber.h.

Definition at line 106 of file lber.h.

Definition at line 105 of file lber.h.

Definition at line 109 of file lber.h.

Definition at line 103 of file lber.h.

Definition at line 104 of file lber.h.

Definition at line 107 of file lber.h.

Definition at line 101 of file lber.h.

Definition at line 102 of file lber.h.

Definition at line 110 of file lber.h.

Definition at line 108 of file lber.h.

#define LBER_USE_DER   0x01

Definition at line 97 of file lber.h.

Definition at line 203 of file lber.h.

#define LDAP_API (   rt)    rt

Definition at line 160 of file lber.h.

Definition at line 145 of file lber.h.

Definition at line 148 of file lber.h.

Definition at line 146 of file lber.h.

Definition at line 147 of file lber.h.


Typedef Documentation

typedef struct berelement

Definition at line 121 of file lber.h.

typedef int(* BERTranslateProc)(char **bufp, unsigned long *buflenp, int free_input)

Definition at line 123 of file lber.h.

typedef struct berval BerValue
char * buf = aResult.BeginWriting()

Definition at line 181 of file lber.h.

Definition at line 181 of file lber.h.

typedef const ldap_x_iovec iov[]

Definition at line 189 of file lber.h.

Definition at line 189 of file lber.h.

typedef int LBER_SOCKET

Definition at line 129 of file lber.h.

typedef void* LDAP_C LDAP_CALLBACK LDAP_CALLOC_CALLBACK(size_t nelem, size_t elsize)

Definition at line 211 of file lber.h.

Definition at line 210 of file lber.h.

Definition at line 213 of file lber.h.

typedef struct ldap_x_iovec ldap_x_iovec

Definition at line 183 of file lber.h.

typedef struct sockbuf

Definition at line 122 of file lber.h.

Definition at line 185 of file lber.h.


Function Documentation

typedef int ( LDAP_C LDAP_CALLBACK  LDAP_IOF_READ_CALLBACK)
LDAP_API ( unsigned  long)
LDAP_API ( void  )
LDAP_API ( struct berval ) const
LDAP_API ( BerElement *  ) const
LDAP_API ( void )
LDAP_API ( Sockbuf *  )
typedef void ( LDAP_C LDAP_CALLBACK  LDAP_FREE_CALLBACK)

Variable Documentation

size_t unsigned long BerElement* ber

Definition at line 286 of file lber.h.

char unsigned long bitlen

Definition at line 269 of file lber.h.

Definition at line 243 of file lber.h.

size_t buffer_size

Definition at line 296 of file lber.h.

struct berval** bv

Definition at line 238 of file lber.h.

const char struct berval** bvPtr

Definition at line 280 of file lber.h.

size_t unsigned long BerElement unsigned long * Bytes_Scanned

Definition at line 296 of file lber.h.

Definition at line 255 of file lber.h.

Definition at line 255 of file lber.h.

const char * fmt

Definition at line 248 of file lber.h.

Definition at line 285 of file lber.h.

BerElement int freeit

Definition at line 287 of file lber.h.

unsigned long char * last

Definition at line 245 of file lber.h.

char unsigned long int nosos

Definition at line 303 of file lber.h.

Definition at line 232 of file lber.h.

Definition at line 307 of file lber.h.

Definition at line 305 of file lber.h.

BerElement** ppBer

Definition at line 291 of file lber.h.

size_t unsigned long BerElement unsigned long Sockbuf* sb

Definition at line 299 of file lber.h.

char* str

Definition at line 265 of file lber.h.

unsigned long tag

Definition at line 261 of file lber.h.

Definition at line 307 of file lber.h.

Definition at line 306 of file lber.h.