ReactOS 0.4.15-dev-7934-g1dc8d80
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
22extern "C" {
23#endif
24
25#ifndef WINBERAPI
26#define WINBERAPI DECLSPEC_IMPORT
27#endif
28
29typedef struct berelement BerElement;
31#include <pshpack4.h>
32typedef struct berval {
34 char *bv_val;
36#include <poppack.h>
37
39typedef INT ber_int_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
48WINBERAPI int ber_printf(BerElement*,const char*,...);
60
61#ifdef __cplusplus
62}
63#endif
64#endif /* _WINBER_H */
unsigned int UINT
Definition: ndis.h:50
Definition: winber.h:32
char * bv_val
Definition: winber.h:34
ber_len_t bv_len
Definition: winber.h:33
int32_t INT
Definition: typedefs.h:58
uint32_t ULONG
Definition: typedefs.h:59
#define WINBERAPI
Definition: winber.h:26
WINBERAPI void ber_bvecfree(BerValue **)
INT ber_int_t
Definition: winber.h:39
struct berval BerValue
struct berval * PLDAP_BERVAL
WINBERAPI int ber_flatten(BerElement *, BerValue **)
WINBERAPI void ber_free(BerElement *, int)
INT ber_slen_t
Definition: winber.h:41
WINBERAPI BerElement * ber_alloc_t(int)
UINT ber_uint_t
Definition: winber.h:40
struct berval BERVAL
WINBERAPI ber_tag_t ber_skip_tag(BerElement *, ber_len_t *)
ULONG ber_len_t
Definition: winber.h:30
WINBERAPI ber_tag_t ber_peek_tag(BerElement *, ber_len_t *)
struct berval LDAP_BERVAL
WINBERAPI BerElement * ber_init(const BerValue *)
ULONG ber_tag_t
Definition: winber.h:38
WINBERAPI ber_tag_t ber_scanf(BerElement *, const char *,...)
struct berval * PBERVAL
WINBERAPI void ber_bvfree(BerValue *)
WINBERAPI ber_tag_t ber_next_element(BerElement *, ber_len_t *, char *)
WINBERAPI ber_tag_t ber_first_element(BerElement *, ber_len_t *, char **)
WINBERAPI int ber_printf(BerElement *, const char *,...)
WINBERAPI BerValue * ber_bvdup(BerValue *)