ReactOS  0.4.15-dev-1068-g467feb9
winber.h
Go to the documentation of this file.
1 /*
2  winber.h - Header file for the Windows LDAP Basic Encoding Rules API
3 
4  Written by Filip Navara <xnavara@volny.cz>
5 
6  References:
7  The C LDAP Application Program Interface
8  http://www.watersprings.org/pub/id/draft-ietf-ldapext-ldap-c-api-05.txt
9 
10  Lightweight Directory Access Protocol Reference
11  http://msdn.microsoft.com/library/en-us/netdir/ldap/ldap_reference.asp
12 
13  This library is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16 */
17 
18 #ifndef _WINBER_H
19 #define _WINBER_H
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
25 #ifndef WINBERAPI
26 #define WINBERAPI DECLSPEC_IMPORT
27 #endif
28 
29 typedef struct berelement BerElement;
30 typedef ULONG ber_len_t;
31 #include <pshpack4.h>
32 typedef struct berval {
34  char *bv_val;
36 #include <poppack.h>
37 
38 typedef ULONG ber_tag_t;
39 typedef INT ber_int_t;
40 typedef UINT ber_uint_t;
41 typedef INT ber_slen_t;
42 
43 #define LBER_ERROR ((ber_tag_t)-1)
44 #define LBER_DEFAULT ((ber_tag_t)-1)
45 #define LBER_USE_DER 0x01
46 
48 WINBERAPI int ber_printf(BerElement*,const char*,...);
50 WINBERAPI ber_tag_t ber_scanf(BerElement*,const char*,...);
57 WINBERAPI void ber_free(BerElement*,int);
60 
61 #ifdef __cplusplus
62 }
63 #endif
64 #endif /* _WINBER_H */
char * bv_val
Definition: winber.h:34
WINBERAPI BerElement * ber_alloc_t(int)
#define WINBERAPI
Definition: winber.h:26
WINBERAPI ber_tag_t ber_scanf(BerElement *, const char *,...)
ULONG ber_len_t
Definition: winber.h:30
int32_t INT
Definition: typedefs.h:58
Definition: winber.h:32
WINBERAPI void ber_bvecfree(BerValue **)
WINBERAPI BerElement * ber_init(const BerValue *)
struct berval * PBERVAL
WINBERAPI int ber_flatten(BerElement *, BerValue **)
struct berval * PLDAP_BERVAL
WINBERAPI int ber_printf(BerElement *, const char *,...)
INT ber_int_t
Definition: winber.h:39
struct berval LDAP_BERVAL
UINT ber_uint_t
Definition: winber.h:40
WINBERAPI BerValue * ber_bvdup(BerValue *)
struct berval BERVAL
WINBERAPI ber_tag_t ber_peek_tag(BerElement *, ber_len_t *)
WINBERAPI ber_tag_t ber_next_element(BerElement *, ber_len_t *, char *)
WINBERAPI void ber_bvfree(BerValue *)
unsigned int UINT
Definition: ndis.h:50
WINBERAPI ber_tag_t ber_skip_tag(BerElement *, ber_len_t *)
struct berval BerValue
unsigned int ULONG
Definition: retypes.h:1
ber_len_t bv_len
Definition: winber.h:33
ULONG ber_tag_t
Definition: winber.h:38
INT ber_slen_t
Definition: winber.h:41
WINBERAPI void ber_free(BerElement *, int)
WINBERAPI ber_tag_t ber_first_element(BerElement *, ber_len_t *, char **)