1 .TH LBER_TYPES 3 "29 August 2001" "OpenLDAP LDVERSION"
3 .\" Copyright 1998-2000 The OpenLDAP Foundation All Rights Reserved.
4 .\" Copying restrictions apply. See COPYRIGHT/LICENSE.
6 ber_int_t, ber_uint_t, ber_len_t, ber_slen_t, ber_tag_t \- LBER types
16 typedef impl_tag_t ber_tag_t;
17 typedef impl_int_t ber_int_t;
18 typedef impl_uint_t ber_uint_t;
19 typedef impl_len_t ber_len_t;
20 typedef impl_slen_t ber_slen_t;
23 typedef struct berval {
28 void ber_bvfree( struct berval *bv );
30 void ber_bvecfree( struct berval **bvec );
32 struct berval *ber_bvdup( const struct berval *bv );
34 struct berval *ber_bvstr( const char *str );
36 struct berval *ber_bvstrdup( const char *str );
39 typedef struct berelement BerElement;
41 void ber_free( BerElement *ber, int freebuf );
47 The following are the basic types and structures defined for use
48 with the Lightweight BER library.
51 is a signed integer of at least 32 bits. It is commonly equivalent to
54 is the unsigned variant of
58 is a unsigned integer of at least 32 bits used to represent a length.
59 It is commonly equivalent to a
62 is the signed variant to
66 is a unsigned integer of at least 32 bits used to represent a
67 BER tag. It is commonly equivalent to a
70 The actual definitions of the integal impl_TYPE_t types are platform
76 is used to holds an arbitrary sequence of octets.
82 is not necessarly terminated by a NULL (zero) octet.
84 frees a BerValue, pointed to by bv, returned from this API. If bv
85 is NULL, the routine does nothing.
87 frees an array of BerValues (and the array), pointed to by bvec,
88 returned from this API. If bvec is NULL, the routine does nothing.
90 returns a copy of a BerValue. The routine returns NULL upon error
93 returns a BerValue containing the string pointed to by str.
95 returns a BerValue containing a copy of the string pointed to by str.
98 is an opaque structure used to maintain state information used in
99 encoding and decoding. BerElement structures are created using
104 frees a BerElement pointed to by ber. If ber is NULL, the routine
105 does nothing. If freebuf is zero, the internal buffer is not freed.
113 is developed and maintained by The OpenLDAP Project (http://www.openldap.org/).
115 is derived from University of Michigan LDAP 3.3 Release.