Back to index

openldap  2.4.31
Classes | Defines | Typedefs | Functions
ldif.h File Reference
#include <ldap_cdefs.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  LDIFFP

Defines

#define LDIF_LINE_WIDTH   76 /* default maximum length of LDIF lines */
#define LDIF_LINE_WIDTH_MAX   ((ber_len_t)-1) /* maximum length of LDIF lines */
#define LDIF_LINE_WIDTH_WRAP(wrap)   ((wrap) == 0 ? LDIF_LINE_WIDTH : (wrap))
#define LDIF_BASE64_LEN(len)   (((len) * 4 / 3 ) + 3)
#define LDIF_SIZE_NEEDED(nlen, vlen)
#define LDIF_SIZE_NEEDED_WRAP(nlen, vlen, wrap)
#define LDIF_PUT_NOVALUE   0x0000 /* no value */
#define LDIF_PUT_VALUE   0x0001 /* value w/ auto detection */
#define LDIF_PUT_TEXT   0x0002 /* assume text */
#define LDIF_PUT_BINARY   0x0004 /* assume binary (convert to base64) */
#define LDIF_PUT_B64   0x0008 /* pre-converted base64 value */
#define LDIF_PUT_COMMENT   0x0010 /* comment */
#define LDIF_PUT_URL   0x0020 /* url */
#define LDIF_PUT_SEP   0x0040 /* separator */

Typedefs

typedef struct LDIFFP LDIFFP

Functions

LDAP_BEGIN_DECL LDAP_LDIF_V (int) ldif_debug
ldif_parse_line LDAP_P ((LDAP_CONST char *line, char **name, char **value, ber_len_t *vlen))
ldif_parse_line2 LDAP_P ((char *line, struct berval *type, struct berval *value, int *freeval))
ldif_open_url LDAP_P ((LDAP_CONST char *urlstr))
ldif_fetch_url LDAP_P ((LDAP_CONST char *line, char **value, ber_len_t *vlen))
ldif_getline LDAP_P ((char **next))
ldif_countlines LDAP_P ((LDAP_CONST char *line))
ldif_open LDAP_P ((LDAP_CONST char *file, LDAP_CONST char *mode))
ldif_close LDAP_P ((LDIFFP *))
ldif_read_record LDAP_P ((LDIFFP *fp, int *lineno, char **bufp, int *buflen))
ldif_must_b64_encode_register LDAP_P ((LDAP_CONST char *name, LDAP_CONST char *oid))
ldif_must_b64_encode_release LDAP_P ((void))
ldif_sput LDAP_P ((char **out, int type, LDAP_CONST char *name, LDAP_CONST char *val, ber_len_t vlen))
ldif_sput_wrap LDAP_P ((char **out, int type, LDAP_CONST char *name, LDAP_CONST char *val, ber_len_t vlen, ber_len_t wrap))
ldif_put LDAP_P ((int type, LDAP_CONST char *name, LDAP_CONST char *val, ber_len_t vlen))
ldif_put_wrap LDAP_P ((int type, LDAP_CONST char *name, LDAP_CONST char *val, ber_len_t vlen, ber_len_t wrap))
ldif_is_not_printable LDAP_P ((LDAP_CONST char *val, ber_len_t vlen))

Class Documentation

struct LDIFFP

Definition at line 94 of file ldif.h.

Collaboration diagram for LDIFFP:
Class Members
FILE * fp
struct LDIFFP * prev

Define Documentation

#define LDIF_BASE64_LEN (   len)    (((len) * 4 / 3 ) + 3)

Definition at line 45 of file ldif.h.

#define LDIF_LINE_WIDTH   76 /* default maximum length of LDIF lines */

Definition at line 36 of file ldif.h.

#define LDIF_LINE_WIDTH_MAX   ((ber_len_t)-1) /* maximum length of LDIF lines */

Definition at line 37 of file ldif.h.

#define LDIF_LINE_WIDTH_WRAP (   wrap)    ((wrap) == 0 ? LDIF_LINE_WIDTH : (wrap))

Definition at line 38 of file ldif.h.

#define LDIF_PUT_B64   0x0008 /* pre-converted base64 value */

Definition at line 124 of file ldif.h.

#define LDIF_PUT_BINARY   0x0004 /* assume binary (convert to base64) */

Definition at line 123 of file ldif.h.

#define LDIF_PUT_COMMENT   0x0010 /* comment */

Definition at line 126 of file ldif.h.

#define LDIF_PUT_NOVALUE   0x0000 /* no value */

Definition at line 120 of file ldif.h.

#define LDIF_PUT_SEP   0x0040 /* separator */

Definition at line 128 of file ldif.h.

#define LDIF_PUT_TEXT   0x0002 /* assume text */

Definition at line 122 of file ldif.h.

#define LDIF_PUT_URL   0x0020 /* url */

Definition at line 127 of file ldif.h.

#define LDIF_PUT_VALUE   0x0001 /* value w/ auto detection */

Definition at line 121 of file ldif.h.

#define LDIF_SIZE_NEEDED (   nlen,
  vlen 
)
Value:
((nlen) + 4 + LDIF_BASE64_LEN(vlen) \
    + ((LDIF_BASE64_LEN(vlen) + (nlen) + 3) / LDIF_LINE_WIDTH * 2 ))

Definition at line 53 of file ldif.h.

#define LDIF_SIZE_NEEDED_WRAP (   nlen,
  vlen,
  wrap 
)
Value:
((nlen) + 4 + LDIF_BASE64_LEN(vlen) \
    + ((wrap) == 0 ? ((LDIF_BASE64_LEN(vlen) + (nlen) + 3) / ( LDIF_LINE_WIDTH ) * 2 ) : \
       ((wrap) == LDIF_LINE_WIDTH_MAX ? 0 : ((LDIF_BASE64_LEN(vlen) + (nlen) + 3) / (wrap) * 2 ))))

Definition at line 57 of file ldif.h.


Typedef Documentation

typedef struct LDIFFP LDIFFP

Function Documentation

ldif_parse_line LDAP_P ( (LDAP_CONST char *line, char **name, char **value, ber_len_t *vlen)  )
ldif_parse_line2 LDAP_P ( (char *line, struct berval *type, struct berval *value, int *freeval)  )
ldif_open_url LDAP_P ( (LDAP_CONST char *urlstr)  )
ldif_fetch_url LDAP_P ( (LDAP_CONST char *line, char **value, ber_len_t *vlen)  )
ldif_getline LDAP_P ( (char **next)  )
ldif_open LDAP_P ( (LDAP_CONST char *file, LDAP_CONST char *mode )
ldif_read_record LDAP_P ( (LDIFFP *fp, int *lineno, char **bufp, int *buflen )
ldif_sput LDAP_P ( (char **out, int type, LDAP_CONST char *name, LDAP_CONST char *val, ber_len_t vlen)  )
ldif_put LDAP_P ( (int type, LDAP_CONST char *name, LDAP_CONST char *val, ber_len_t vlen)  )