winldap.h 27.6 KB
Newer Older
Hans Leidekker's avatar
Hans Leidekker committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
/*
 * Copyright 2005 Hans Leidekker
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
16
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
Hans Leidekker's avatar
Hans Leidekker committed
17 18
 */

19 20 21
#ifndef __WINE_WINLDAP_H
#define __WINE_WINLDAP_H

22 23 24 25 26 27 28 29
#include <windef.h>
#include <schnlsp.h>

#ifndef LDAPAPI
#define LDAPAPI __cdecl
#endif


Hans Leidekker's avatar
Hans Leidekker committed
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95
typedef enum {
    LDAP_SUCCESS                    =   0x00,
    LDAP_OPERATIONS_ERROR           =   0x01,
    LDAP_PROTOCOL_ERROR             =   0x02,
    LDAP_TIMELIMIT_EXCEEDED         =   0x03,
    LDAP_SIZELIMIT_EXCEEDED         =   0x04,
    LDAP_COMPARE_FALSE              =   0x05,
    LDAP_COMPARE_TRUE               =   0x06,
    LDAP_AUTH_METHOD_NOT_SUPPORTED  =   0x07,
    LDAP_STRONG_AUTH_REQUIRED       =   0x08,
    LDAP_REFERRAL_V2                =   0x09,
    LDAP_PARTIAL_RESULTS            =   0x09,
    LDAP_REFERRAL                   =   0x0a,
    LDAP_ADMIN_LIMIT_EXCEEDED       =   0x0b,
    LDAP_UNAVAILABLE_CRIT_EXTENSION =   0x0c,
    LDAP_CONFIDENTIALITY_REQUIRED   =   0x0d,
    LDAP_SASL_BIND_IN_PROGRESS      =   0x0e,

    LDAP_NO_SUCH_ATTRIBUTE          =   0x10,
    LDAP_UNDEFINED_TYPE             =   0x11,
    LDAP_INAPPROPRIATE_MATCHING     =   0x12,
    LDAP_CONSTRAINT_VIOLATION       =   0x13,
    LDAP_ATTRIBUTE_OR_VALUE_EXISTS  =   0x14,
    LDAP_INVALID_SYNTAX             =   0x15,

    LDAP_NO_SUCH_OBJECT             =   0x20,
    LDAP_ALIAS_PROBLEM              =   0x21,
    LDAP_INVALID_DN_SYNTAX          =   0x22,
    LDAP_IS_LEAF                    =   0x23,
    LDAP_ALIAS_DEREF_PROBLEM        =   0x24,

    LDAP_INAPPROPRIATE_AUTH         =   0x30,
    LDAP_INVALID_CREDENTIALS        =   0x31,
    LDAP_INSUFFICIENT_RIGHTS        =   0x32,
    LDAP_BUSY                       =   0x33,
    LDAP_UNAVAILABLE                =   0x34,
    LDAP_UNWILLING_TO_PERFORM       =   0x35,
    LDAP_LOOP_DETECT                =   0x36,
    LDAP_SORT_CONTROL_MISSING       =   0x3C,
    LDAP_OFFSET_RANGE_ERROR         =   0x3D,

    LDAP_NAMING_VIOLATION           =   0x40,
    LDAP_OBJECT_CLASS_VIOLATION     =   0x41,
    LDAP_NOT_ALLOWED_ON_NONLEAF     =   0x42,
    LDAP_NOT_ALLOWED_ON_RDN         =   0x43,
    LDAP_ALREADY_EXISTS             =   0x44,
    LDAP_NO_OBJECT_CLASS_MODS       =   0x45,
    LDAP_RESULTS_TOO_LARGE          =   0x46,
    LDAP_AFFECTS_MULTIPLE_DSAS      =   0x47,

    LDAP_VIRTUAL_LIST_VIEW_ERROR    =   0x4c,

    LDAP_OTHER                      =   0x50,
    LDAP_SERVER_DOWN                =   0x51,
    LDAP_LOCAL_ERROR                =   0x52,
    LDAP_ENCODING_ERROR             =   0x53,
    LDAP_DECODING_ERROR             =   0x54,
    LDAP_TIMEOUT                    =   0x55,
    LDAP_AUTH_UNKNOWN               =   0x56,
    LDAP_FILTER_ERROR               =   0x57,
    LDAP_USER_CANCELLED             =   0x58,
    LDAP_PARAM_ERROR                =   0x59,
    LDAP_NO_MEMORY                  =   0x5a,
    LDAP_CONNECT_ERROR              =   0x5b,
    LDAP_NOT_SUPPORTED              =   0x5c,
    LDAP_CONTROL_NOT_FOUND          =   0x5d,
96
    LDAP_NO_RESULTS_RETURNED        =   0x5e,
Hans Leidekker's avatar
Hans Leidekker committed
97 98 99 100 101 102 103 104 105 106
    LDAP_MORE_RESULTS_TO_RETURN     =   0x5f,

    LDAP_CLIENT_LOOP                =   0x60,
    LDAP_REFERRAL_LIMIT_EXCEEDED    =   0x61
} LDAP_RETCODE;

#define LDAP_SCOPE_BASE         0x00
#define LDAP_SCOPE_ONELEVEL     0x01
#define LDAP_SCOPE_SUBTREE      0x02

107 108
#define LBER_USE_DER            0x01

Hans Leidekker's avatar
Hans Leidekker committed
109 110 111 112 113
typedef struct berelement
{
    PCHAR opaque;
} BerElement;

114 115 116 117 118 119 120 121
#define LDAP_OPT_API_INFO               0x00
#define LDAP_OPT_DESC                   0x01
#define LDAP_OPT_DEREF                  0x02
#define LDAP_OPT_SIZELIMIT              0x03
#define LDAP_OPT_TIMELIMIT              0x04
#define LDAP_OPT_THREAD_FN_PTRS         0x05
#define LDAP_OPT_REBIND_FN              0x06
#define LDAP_OPT_REBIND_ARG             0x07
122 123
#define LDAP_OPT_REFERRALS              0x08
#define LDAP_OPT_RESTART                0x09
124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163
#define LDAP_OPT_SSL                    0x0a
#define LDAP_OPT_IO_FN_PTRS             0x0b
#define LDAP_OPT_CACHE_FN_PTRS          0x0d
#define LDAP_OPT_CACHE_STRATEGY         0x0e
#define LDAP_OPT_CACHE_ENABLE           0x0f
#define LDAP_OPT_REFERRAL_HOP_LIMIT     0x10
#define LDAP_OPT_PROTOCOL_VERSION       0x11
#define LDAP_OPT_VERSION                0x11
#define LDAP_OPT_API_FEATURE_INFO       0x15
#define LDAP_OPT_HOST_NAME              0x30
#define LDAP_OPT_ERROR_NUMBER           0x31
#define LDAP_OPT_ERROR_STRING           0x32
#define LDAP_OPT_SERVER_ERROR           0x33
#define LDAP_OPT_SERVER_EXT_ERROR       0x34
#define LDAP_OPT_PING_KEEP_ALIVE        0x36
#define LDAP_OPT_PING_WAIT_TIME         0x37
#define LDAP_OPT_PING_LIMIT             0x38
#define LDAP_OPT_DNSDOMAIN_NAME         0x3b
#define LDAP_OPT_GETDSNAME_FLAGS        0x3d
#define LDAP_OPT_HOST_REACHABLE         0x3e
#define LDAP_OPT_PROMPT_CREDENTIALS     0x3f
#define LDAP_OPT_TCP_KEEPALIVE          0x40
#define LDAP_OPT_FAST_CONCURRENT_BIND   0x41
#define LDAP_OPT_SEND_TIMEOUT           0x42
#define LDAP_OPT_REFERRAL_CALLBACK      0x70
#define LDAP_OPT_CLIENT_CERTIFICATE     0x80
#define LDAP_OPT_SERVER_CERTIFICATE     0x81
#define LDAP_OPT_AUTO_RECONNECT         0x91
#define LDAP_OPT_SSPI_FLAGS             0x92
#define LDAP_OPT_SSL_INFO               0x93
#define LDAP_OPT_REF_DEREF_CONN_PER_MSG 0x94
#define LDAP_OPT_TLS                    LDAP_OPT_SSL
#define LDAP_OPT_TLS_INFO               LDAP_OPT_SSL_INFO
#define LDAP_OPT_SIGN                   0x95
#define LDAP_OPT_ENCRYPT                0x96
#define LDAP_OPT_SASL_METHOD            0x97
#define LDAP_OPT_AREC_EXCLUSIVE         0x98
#define LDAP_OPT_SECURITY_CONTEXT       0x99
#define LDAP_OPT_ROOTDSE_CACHE          0x9a

164 165 166
#define LDAP_OPT_ON                     ((void *)1)
#define LDAP_OPT_OFF                    ((void *)0)

167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188
#define LDAP_VERSION1   1
#define LDAP_VERSION2   2
#define LDAP_VERSION3   3
#define LDAP_VERSION    LDAP_VERSION2

#define LDAP_MSG_ONE        0
#define LDAP_MSG_ALL        1
#define LDAP_MSG_RECEIVED   2

#define LDAP_RES_BIND           0x61
#define LDAP_RES_SEARCH_ENTRY   0x64
#define LDAP_RES_SEARCH_RESULT  0x65
#define LDAP_RES_MODIFY         0x67
#define LDAP_RES_ADD            0x69
#define LDAP_RES_DELETE         0x6b
#define LDAP_RES_MODRDN         0x6d
#define LDAP_RES_COMPARE        0x6f
#define LDAP_RES_SESSION        0x72
#define LDAP_RES_REFERRAL       0x73
#define LDAP_RES_EXTENDED       0x78
#define LDAP_RES_ANY            (-1)

189 190 191 192 193 194 195 196 197 198 199 200
#define LDAP_AUTH_SIMPLE        0x80
#define LDAP_AUTH_SASL          0x83
#define LDAP_AUTH_OTHERKIND     0x86

#define LDAP_AUTH_EXTERNAL      (LDAP_AUTH_OTHERKIND | 0x0020)
#define LDAP_AUTH_SICILY        (LDAP_AUTH_OTHERKIND | 0x0200)
#define LDAP_AUTH_NEGOTIATE     (LDAP_AUTH_OTHERKIND | 0x0400)
#define LDAP_AUTH_MSN           (LDAP_AUTH_OTHERKIND | 0x0800)
#define LDAP_AUTH_NTLM          (LDAP_AUTH_OTHERKIND | 0x1000)
#define LDAP_AUTH_DPA           (LDAP_AUTH_OTHERKIND | 0x2000)
#define LDAP_AUTH_DIGEST        (LDAP_AUTH_OTHERKIND | 0x4000)

Hans Leidekker's avatar
Hans Leidekker committed
201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295
typedef struct ldap
{
    struct
    {
        UINT_PTR sb_sd;
        UCHAR Reserved1[41];
        ULONG_PTR sb_naddr;
        UCHAR Reserved2[24];
    } ld_sb;

    PCHAR ld_host;
    ULONG ld_version;
    UCHAR ld_lberoptions;
    ULONG ld_deref;
    ULONG ld_timelimit;
    ULONG ld_sizelimit;
    ULONG ld_errno;
    PCHAR ld_matched;
    PCHAR ld_error;
    ULONG ld_msgid;
    UCHAR Reserved3[25];
    ULONG ld_cldaptries;
    ULONG ld_cldaptimeout;
    ULONG ld_refhoplimit;
    ULONG ld_options;
} LDAP, *PLDAP;

#define LDAP_MOD_ADD        0x00
#define LDAP_MOD_DELETE     0x01
#define LDAP_MOD_REPLACE    0x02
#define LDAP_MOD_BVALUES    0x80

typedef struct ldapmodA {
    ULONG mod_op;
    PCHAR mod_type;
    union {
        PCHAR *modv_strvals;
        struct berval **modv_bvals;
    } mod_vals;
} LDAPModA, *PLDAPModA;

typedef struct ldapmodW {
    ULONG mod_op;
    PWCHAR mod_type;
    union {
        PWCHAR *modv_strvals;
        struct berval **modv_bvals;
    } mod_vals;
} LDAPModW, *PLDAPModW;

DECL_WINELIB_TYPE_AW(LDAPMod)
DECL_WINELIB_TYPE_AW(PLDAPMod)

typedef struct l_timeval
{
    LONG tv_sec;
    LONG tv_usec;
} LDAP_TIMEVAL, *PLDAP_TIMEVAL;

typedef struct ldapmsg
{
    ULONG lm_msgid;
    ULONG lm_msgtype;

    PVOID lm_ber;

    struct ldapmsg *lm_chain;
    struct ldapmsg *lm_next;
    ULONG lm_time;

    PLDAP Connection;
    PVOID Request;
    ULONG lm_returncode;
    USHORT lm_referral;
    BOOLEAN lm_chased;
    BOOLEAN lm_eom;
    BOOLEAN ConnectionReferenced;
} LDAPMessage, *PLDAPMessage;

#define LAPI_MAJOR_VER1     1
#define LAPI_MINOR_VER1     1

typedef struct ldap_version_info
{
    ULONG lv_size;
    ULONG lv_major;
    ULONG lv_minor;
} LDAP_VERSION_INFO, *PLDAP_VERSION_INFO;

typedef struct berval
{
    ULONG bv_len;
    PCHAR bv_val;
} LDAP_BERVAL, *PLDAP_BERVAL, BERVAL, *PBERVAL, BerValue;

296 297 298 299 300 301 302 303
#define LDAP_PAGED_RESULT_OID_STRING "1.2.840.113556.1.4.319"
#define LDAP_SERVER_RESP_SORT_OID "1.2.840.113556.1.4.474"
#define LDAP_CONTROL_VLVRESPONSE "2.16.840.1.113730.3.4.10"

#define LDAP_PAGED_RESULT_OID_STRING_W L"1.2.840.113556.1.4.319"
#define LDAP_SERVER_RESP_SORT_OID_W L"1.2.840.113556.1.4.474"
#define LDAP_CONTROL_VLVRESPONSE_W L"2.16.840.1.113730.3.4.10"

Hans Leidekker's avatar
Hans Leidekker committed
304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351
typedef struct ldapcontrolA
{
    PCHAR ldctl_oid;
    struct berval ldctl_value;
    BOOLEAN ldctl_iscritical;
} LDAPControlA, *PLDAPControlA;

typedef struct ldapcontrolW
{
    PWCHAR ldctl_oid;
    struct berval ldctl_value;
    BOOLEAN ldctl_iscritical;
} LDAPControlW, *PLDAPControlW;

DECL_WINELIB_TYPE_AW(LDAPControl)
DECL_WINELIB_TYPE_AW(PLDAPControl)

typedef struct ldapvlvinfo
{
    int ldvlv_version;
    ULONG ldvlv_before_count;
    ULONG ldvlv_after_count;
    ULONG ldvlv_offset;
    ULONG ldvlv_count;
    PBERVAL ldvlv_attrvalue;
    PBERVAL ldvlv_context;
    VOID *ldvlv_extradata;
} LDAPVLVInfo, *PLDAPVLVInfo;

typedef struct ldapsearch LDAPSearch, *PLDAPSearch;

typedef struct ldapsortkeyA
{
    PCHAR sk_attrtype;
    PCHAR sk_matchruleoid;
    BOOLEAN sk_reverseorder;
} LDAPSortKeyA, *PLDAPSortKeyA;

typedef struct ldapsortkeyW
{
    PWCHAR sk_attrtype;
    PWCHAR sk_matchruleoid;
    BOOLEAN sk_reverseorder;
} LDAPSortKeyW, *PLDAPSortKeyW;

DECL_WINELIB_TYPE_AW(LDAPSortKey)
DECL_WINELIB_TYPE_AW(PLDAPSortKey)

352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393
#define LDAP_API_INFO_VERSION     1

typedef struct ldapapiinfoA
{
    int ldapai_info_version;
    int ldapai_api_version;
    int ldapai_protocol_version;
    char **ldapai_extensions;
    char *ldapai_vendor_name;
    int ldapai_vendor_version;
} LDAPAPIInfoA;

typedef struct ldapapiinfoW
{
    int ldapai_info_version;
    int ldapai_api_version;
    int ldapai_protocol_version;
    PWCHAR *ldapai_extensions;
    PWCHAR ldapai_vendor_name;
    int ldapai_vendor_version;
} LDAPAPIInfoW;

DECL_WINELIB_TYPE_AW(LDAPAPIInfo)

#define LDAP_FEATURE_INFO_VERSION    1

typedef struct ldap_apifeature_infoA
{
    int ldapaif_info_version;
    char *ldapaif_name;
    int ldapaif_version;
} LDAPAPIFeatureInfoA;

typedef struct ldap_apifeature_infoW
{
    int ldapaif_info_version;
    PWCHAR ldapaif_name;
    int ldapaif_version;
} LDAPAPIFeatureInfoW;

DECL_WINELIB_TYPE_AW(LDAPAPIFeatureInfo)

394
typedef BOOLEAN (CDECL QUERYCLIENTCERT)(LDAP*,SecPkgContext_IssuerListInfoEx*,const CERT_CONTEXT**);
395 396
typedef BOOLEAN (CDECL VERIFYSERVERCERT)(LDAP*,const CERT_CONTEXT**);

397 398 399 400 401

#ifdef __cplusplus
extern "C" {
#endif

402 403 404 405 406 407 408 409
void CDECL ldap_memfreeA(char*);
void CDECL ldap_memfreeW(WCHAR*);
#define    ldap_memfree WINELIB_NAME_AW(ldap_memfree)
ULONG CDECL ldap_value_freeA(char**);
ULONG CDECL ldap_value_freeW(WCHAR**);
#define    ldap_value_free WINELIB_NAME_AW(ldap_value_free)
ULONG CDECL ldap_value_free_len(struct berval**);

410 411
LDAP * CDECL cldap_openA(PCHAR,ULONG);
LDAP * CDECL cldap_openW(PWCHAR,ULONG);
Hans Leidekker's avatar
Hans Leidekker committed
412
#define    cldap_open WINELIB_NAME_AW(cldap_open)
413 414 415
ULONG CDECL ldap_abandon(LDAP*,ULONG);
ULONG CDECL ldap_addA(LDAP*,PCHAR,LDAPModA*[]);
ULONG CDECL ldap_addW(LDAP*,PWCHAR,LDAPModW*[]);
Hans Leidekker's avatar
Hans Leidekker committed
416
#define    ldap_add WINELIB_NAME_AW(ldap_add)
417 418
ULONG CDECL ldap_add_extA(LDAP*,PCHAR,LDAPModA*[],PLDAPControlA*,PLDAPControlA*,ULONG*);
ULONG CDECL ldap_add_extW(LDAP*,PWCHAR,LDAPModW*[],PLDAPControlW*,PLDAPControlW*,ULONG*);
Hans Leidekker's avatar
Hans Leidekker committed
419
#define    ldap_add_ext WINELIB_NAME_AW(ldap_add_ext)
420 421
ULONG CDECL ldap_add_ext_sA(LDAP*,PCHAR,LDAPModA*[],PLDAPControlA*,PLDAPControlA*);
ULONG CDECL ldap_add_ext_sW(LDAP*,PWCHAR,LDAPModW*[],PLDAPControlW*,PLDAPControlW*);
Hans Leidekker's avatar
Hans Leidekker committed
422
#define    ldap_add_ext_s WINELIB_NAME_AW(ldap_add_ext_s)
423 424
ULONG CDECL ldap_add_sA(LDAP*,PCHAR,LDAPModA*[]);
ULONG CDECL ldap_add_sW(LDAP*,PWCHAR,LDAPModW*[]);
Hans Leidekker's avatar
Hans Leidekker committed
425
#define    ldap_add_s WINELIB_NAME_AW(ldap_add_s)
426 427
ULONG CDECL ldap_bindA(LDAP*,PCHAR,PCHAR,ULONG);
ULONG CDECL ldap_bindW(LDAP*,PWCHAR,PWCHAR,ULONG);
Hans Leidekker's avatar
Hans Leidekker committed
428
#define    ldap_bind WINELIB_NAME_AW(ldap_bind)
429 430
ULONG CDECL ldap_bind_sA(LDAP*,PCHAR,PCHAR,ULONG);
ULONG CDECL ldap_bind_sW(LDAP*,PWCHAR,PWCHAR,ULONG);
Hans Leidekker's avatar
Hans Leidekker committed
431
#define    ldap_bind_s WINELIB_NAME_AW(ldap_bind_s)
432 433
ULONG CDECL ldap_check_filterA(LDAP*,PCHAR);
ULONG CDECL ldap_check_filterW(LDAP*,PWCHAR);
Hans Leidekker's avatar
Hans Leidekker committed
434
#define    ldap_check_filter WINELIB_NAME_AW(ldap_check_filter)
435 436 437 438 439
ULONG CDECL ldap_cleanup(HANDLE);
ULONG CDECL ldap_close_extended_op(LDAP*,ULONG);
LDAP* CDECL ldap_conn_from_msg(LDAP*,LDAPMessage*);
ULONG CDECL ldap_compareA(LDAP*,PCHAR,PCHAR,PCHAR);
ULONG CDECL ldap_compareW(LDAP*,PWCHAR,PWCHAR,PWCHAR);
Hans Leidekker's avatar
Hans Leidekker committed
440
#define    ldap_compare WINELIB_NAME_AW(ldap_compare)
441 442
ULONG CDECL ldap_compare_extA(LDAP*,PCHAR,PCHAR,PCHAR,struct berval*,PLDAPControlA*,PLDAPControlA*,ULONG*);
ULONG CDECL ldap_compare_extW(LDAP*,PWCHAR,PWCHAR,PWCHAR,struct berval*,PLDAPControlW*,PLDAPControlW*,ULONG*);
Hans Leidekker's avatar
Hans Leidekker committed
443
#define    ldap_compare_ext WINELIB_NAME_AW(ldap_compare_ext)
444 445
ULONG CDECL ldap_compare_ext_sA(LDAP*,PCHAR,PCHAR,PCHAR,struct berval*,PLDAPControlA*,PLDAPControlA*);
ULONG CDECL ldap_compare_ext_sW(LDAP*,PWCHAR,PWCHAR,PWCHAR,struct berval*,PLDAPControlW*,PLDAPControlW*);
Hans Leidekker's avatar
Hans Leidekker committed
446
#define    ldap_compare_ext_s WINELIB_NAME_AW(ldap_compare_ext_s)
447 448
ULONG CDECL ldap_compare_sA(LDAP*,PCHAR,PCHAR,PCHAR);
ULONG CDECL ldap_compare_sW(LDAP*,PWCHAR,PWCHAR,PWCHAR);
Hans Leidekker's avatar
Hans Leidekker committed
449
#define    ldap_compare_s WINELIB_NAME_AW(ldap_compare_s)
450 451 452
ULONG CDECL ldap_connect(LDAP*,struct l_timeval*);
ULONG CDECL ldap_control_freeA(LDAPControlA*);
ULONG CDECL ldap_control_freeW(LDAPControlW*);
Hans Leidekker's avatar
Hans Leidekker committed
453
#define    ldap_control_free WINELIB_NAME_AW(ldap_control_free)
454 455
ULONG CDECL ldap_controls_freeA(LDAPControlA**);
ULONG CDECL ldap_controls_freeW(LDAPControlW**);
Hans Leidekker's avatar
Hans Leidekker committed
456
#define    ldap_controls_free WINELIB_NAME_AW(ldap_controls_free)
457 458 459 460 461
ULONG CDECL ldap_count_entries(LDAP*,LDAPMessage*);
ULONG CDECL ldap_count_references(LDAP*,LDAPMessage*);
ULONG CDECL ldap_count_values_len(struct berval**);
ULONG CDECL ldap_count_valuesA(PCHAR*);
ULONG CDECL ldap_count_valuesW(PWCHAR*);
Hans Leidekker's avatar
Hans Leidekker committed
462
#define    ldap_count_values WINELIB_NAME_AW(ldap_count_values)
463 464
ULONG CDECL ldap_create_page_controlA(PLDAP,ULONG,struct berval*,UCHAR,PLDAPControlA*);
ULONG CDECL ldap_create_page_controlW(PLDAP,ULONG,struct berval*,UCHAR,PLDAPControlW*);
Hans Leidekker's avatar
Hans Leidekker committed
465
#define    ldap_create_page_control WINELIB_NAME_AW(ldap_create_page_control)
466 467
ULONG CDECL ldap_create_sort_controlA(PLDAP,PLDAPSortKeyA*,UCHAR,PLDAPControlA*);
ULONG CDECL ldap_create_sort_controlW(PLDAP,PLDAPSortKeyW*,UCHAR,PLDAPControlW*);
Hans Leidekker's avatar
Hans Leidekker committed
468
#define    ldap_create_sort_control WINELIB_NAME_AW(ldap_create_sort_control)
469 470
INT CDECL  ldap_create_vlv_controlA(PLDAP,PLDAPVLVInfo,UCHAR,PLDAPControlA*);
INT CDECL  ldap_create_vlv_controlW(PLDAP,PLDAPVLVInfo,UCHAR,PLDAPControlW*);
Hans Leidekker's avatar
Hans Leidekker committed
471
#define    ldap_create_vlv_control WINELIB_NAME_AW(ldap_create_vlv_control)
472 473
ULONG CDECL ldap_deleteA(LDAP*,PCHAR);
ULONG CDECL ldap_deleteW(LDAP*,PWCHAR);
Hans Leidekker's avatar
Hans Leidekker committed
474
#define    ldap_delete WINELIB_NAME_AW(ldap_delete)
475 476
ULONG CDECL ldap_delete_extA(LDAP*,PCHAR,PLDAPControlA*,PLDAPControlA*,ULONG*);
ULONG CDECL ldap_delete_extW(LDAP*,PWCHAR,PLDAPControlW*,PLDAPControlW*,ULONG*);
Hans Leidekker's avatar
Hans Leidekker committed
477
#define    ldap_delete_ext WINELIB_NAME_AW(ldap_delete_ext)
478 479
ULONG CDECL ldap_delete_ext_sA(LDAP*,PCHAR,PLDAPControlA*,PLDAPControlA*);
ULONG CDECL ldap_delete_ext_sW(LDAP*,PWCHAR,PLDAPControlW*,PLDAPControlW*);
Hans Leidekker's avatar
Hans Leidekker committed
480
#define    ldap_delete_ext_s WINELIB_NAME_AW(ldap_delete_ext_s)
481 482
ULONG CDECL ldap_delete_sA(LDAP*,PCHAR);
ULONG CDECL ldap_delete_sW(LDAP*,PWCHAR);
Hans Leidekker's avatar
Hans Leidekker committed
483
#define    ldap_delete_s WINELIB_NAME_AW(ldap_delete_s)
484 485
char* CDECL ldap_dn2ufnA(char*) __WINE_DEALLOC(ldap_memfreeA) __WINE_MALLOC;
WCHAR* CDECL ldap_dn2ufnW(WCHAR*) __WINE_DEALLOC(ldap_memfreeW) __WINE_MALLOC;
Hans Leidekker's avatar
Hans Leidekker committed
486
#define    ldap_dn2ufn WINELIB_NAME_AW(ldap_dn2ufn)
487 488
ULONG CDECL ldap_encode_sort_controlA(PLDAP,PLDAPSortKeyA*,PLDAPControlA,BOOLEAN);
ULONG CDECL ldap_encode_sort_controlW(PLDAP,PLDAPSortKeyW*,PLDAPControlW,BOOLEAN);
Hans Leidekker's avatar
Hans Leidekker committed
489
#define    ldap_encode_sort_control WINELIB_NAME_AW(ldap_encode_sort_control)
490 491
PCHAR CDECL ldap_err2stringA(ULONG);
PWCHAR CDECL ldap_err2stringW(ULONG);
Hans Leidekker's avatar
Hans Leidekker committed
492
#define    ldap_err2string WINELIB_NAME_AW(ldap_err2string)
493 494
ULONG CDECL ldap_escape_filter_elementA(PCHAR,ULONG,PCHAR,ULONG);
ULONG CDECL ldap_escape_filter_elementW(PCHAR,ULONG,PWCHAR,ULONG);
Hans Leidekker's avatar
Hans Leidekker committed
495
#define    ldap_escape_filter_element WINELIB_NAME_AW(ldap_escape_filter_element)
496 497
char** CDECL ldap_explode_dnA(char*,ULONG) __WINE_DEALLOC(ldap_value_freeA);
WCHAR** CDECL ldap_explode_dnW(WCHAR*,ULONG) __WINE_DEALLOC(ldap_value_freeW);
Hans Leidekker's avatar
Hans Leidekker committed
498
#define    ldap_explode_dn WINELIB_NAME_AW(ldap_explode_dn)
499 500
ULONG CDECL ldap_extended_operationA(LDAP*,PCHAR,struct berval*,PLDAPControlA*,PLDAPControlA*,ULONG*);
ULONG CDECL ldap_extended_operationW(LDAP*,PWCHAR,struct berval*,PLDAPControlW*,PLDAPControlW*,ULONG*);
Hans Leidekker's avatar
Hans Leidekker committed
501
#define    ldap_extended_operation WINELIB_NAME_AW(ldap_extended_operation)
502 503
ULONG CDECL ldap_extended_operation_sA(LDAP*,PCHAR,struct berval*,PLDAPControlA*,PLDAPControlA*,PCHAR*,struct berval**);
ULONG CDECL ldap_extended_operation_sW(LDAP*,PWCHAR,struct berval*,PLDAPControlW*,PLDAPControlW*,PWCHAR*,struct berval**);
Hans Leidekker's avatar
Hans Leidekker committed
504
#define    ldap_extended_operation_s WINELIB_NAME_AW(ldap_extended_operation_s)
505 506 507 508
char* CDECL ldap_first_attributeA(LDAP*,LDAPMessage*,BerElement**)
    __WINE_DEALLOC(ldap_memfreeA) __WINE_MALLOC;
WCHAR* CDECL ldap_first_attributeW(LDAP*,LDAPMessage*,BerElement**)
    __WINE_DEALLOC(ldap_memfreeW) __WINE_MALLOC;
Hans Leidekker's avatar
Hans Leidekker committed
509
#define    ldap_first_attribute WINELIB_NAME_AW(ldap_first_attribute)
510 511 512 513
LDAPMessage* CDECL ldap_first_entry(LDAP*,LDAPMessage*);
LDAPMessage* CDECL ldap_first_reference(LDAP*,LDAPMessage*);
ULONG CDECL ldap_free_controlsA(LDAPControlA**);
ULONG CDECL ldap_free_controlsW(LDAPControlW**);
Hans Leidekker's avatar
Hans Leidekker committed
514
#define    ldap_free_controls WINELIB_NAME_AW(ldap_free_controls)
515 516
char* CDECL ldap_get_dnA(LDAP*,LDAPMessage*) __WINE_DEALLOC(ldap_memfreeA) __WINE_MALLOC;
WCHAR* CDECL ldap_get_dnW(LDAP*,LDAPMessage*) __WINE_DEALLOC(ldap_memfreeW) __WINE_MALLOC;
Hans Leidekker's avatar
Hans Leidekker committed
517
#define    ldap_get_dn WINELIB_NAME_AW(ldap_get_dn)
518 519 520 521
ULONG CDECL ldap_get_next_page(PLDAP,PLDAPSearch,ULONG,ULONG*);
ULONG CDECL ldap_get_next_page_s(PLDAP,PLDAPSearch,struct l_timeval*,ULONG,ULONG*,LDAPMessage**);
ULONG CDECL ldap_get_optionA(LDAP*,int,void*);
ULONG CDECL ldap_get_optionW(LDAP*,int,void*);
Hans Leidekker's avatar
Hans Leidekker committed
522
#define    ldap_get_option WINELIB_NAME_AW(ldap_get_option)
523
ULONG CDECL ldap_get_paged_count(LDAP*,PLDAPSearch,ULONG*,LDAPMessage*);
524 525
char** CDECL ldap_get_valuesA(LDAP*,LDAPMessage*,char*) __WINE_DEALLOC(ldap_value_freeA);
WCHAR** CDECL ldap_get_valuesW(LDAP*,LDAPMessage*,WCHAR*) __WINE_DEALLOC(ldap_value_freeW);
Hans Leidekker's avatar
Hans Leidekker committed
526
#define    ldap_get_values WINELIB_NAME_AW(ldap_get_values)
527 528 529 530
struct berval ** CDECL ldap_get_values_lenA(LDAP*,LDAPMessage*,char*)
    __WINE_DEALLOC(ldap_value_free_len);
struct berval ** CDECL ldap_get_values_lenW(LDAP*,LDAPMessage*,WCHAR*)
    __WINE_DEALLOC(ldap_value_free_len);
Hans Leidekker's avatar
Hans Leidekker committed
531
#define    ldap_get_values_len WINELIB_NAME_AW(ldap_get_values_len)
532 533
LDAP* CDECL ldap_initA(const PCHAR,ULONG);
LDAP* CDECL ldap_initW(const PWCHAR,ULONG);
Hans Leidekker's avatar
Hans Leidekker committed
534
#define    ldap_init WINELIB_NAME_AW(ldap_init)
535 536
ULONG CDECL ldap_modifyA(LDAP*,PCHAR,LDAPModA*[]);
ULONG CDECL ldap_modifyW(LDAP*,PWCHAR,LDAPModW*[]);
Hans Leidekker's avatar
Hans Leidekker committed
537
#define    ldap_modify WINELIB_NAME_AW(ldap_modify)
538 539
ULONG CDECL ldap_modify_extA(LDAP*,PCHAR,LDAPModA*[],PLDAPControlA*,PLDAPControlA*,ULONG*);
ULONG CDECL ldap_modify_extW(LDAP*,PWCHAR,LDAPModW*[],PLDAPControlW*,PLDAPControlW*,ULONG*);
Hans Leidekker's avatar
Hans Leidekker committed
540
#define    ldap_modify_ext WINELIB_NAME_AW(ldap_modify_ext)
541 542
ULONG CDECL ldap_modify_ext_sA(LDAP*,PCHAR,LDAPModA*[],PLDAPControlA*,PLDAPControlA*);
ULONG CDECL ldap_modify_ext_sW(LDAP*,PWCHAR,LDAPModW*[],PLDAPControlW*,PLDAPControlW*);
Hans Leidekker's avatar
Hans Leidekker committed
543
#define    ldap_modify_ext_s WINELIB_NAME_AW(ldap_modify_ext_s)
544 545
ULONG CDECL ldap_modify_sA(LDAP*,PCHAR,LDAPModA*[]);
ULONG CDECL ldap_modify_sW(LDAP*,PWCHAR,LDAPModW*[]);
Hans Leidekker's avatar
Hans Leidekker committed
546
#define    ldap_modify_s WINELIB_NAME_AW(ldap_modify_s)
547 548
ULONG CDECL ldap_modrdnA(LDAP*,PCHAR,PCHAR);
ULONG CDECL ldap_modrdnW(LDAP*,PWCHAR,PWCHAR);
Hans Leidekker's avatar
Hans Leidekker committed
549
#define    ldap_modrdn WINELIB_NAME_AW(ldap_modrdn)
550 551
ULONG CDECL ldap_modrdn2A(LDAP*,PCHAR,PCHAR,INT);
ULONG CDECL ldap_modrdn2W(LDAP*,PWCHAR,PWCHAR,INT);
Hans Leidekker's avatar
Hans Leidekker committed
552
#define    ldap_modrdn2 WINELIB_NAME_AW(ldap_modrdn2)
553 554
ULONG CDECL ldap_modrdn2_sA(LDAP*,PCHAR,PCHAR,INT);
ULONG CDECL ldap_modrdn2_sW(LDAP*,PWCHAR,PWCHAR,INT);
Hans Leidekker's avatar
Hans Leidekker committed
555
#define    ldap_modrdn2_s WINELIB_NAME_AW(ldap_modrdn2_s)
556 557
ULONG CDECL ldap_modrdn_sA(LDAP*,PCHAR,PCHAR);
ULONG CDECL ldap_modrdn_sW(LDAP*,PWCHAR,PWCHAR);
Hans Leidekker's avatar
Hans Leidekker committed
558
#define    ldap_modrdn_s WINELIB_NAME_AW(ldap_modrdn_s)
559
ULONG CDECL ldap_msgfree(LDAPMessage*);
560 561 562 563
char* CDECL ldap_next_attributeA(LDAP*,LDAPMessage*,BerElement*)
    __WINE_DEALLOC(ldap_memfreeA) __WINE_MALLOC;
WCHAR* CDECL ldap_next_attributeW(LDAP*,LDAPMessage*,BerElement*)
    __WINE_DEALLOC(ldap_memfreeW) __WINE_MALLOC;
Hans Leidekker's avatar
Hans Leidekker committed
564
#define    ldap_next_attribute WINELIB_NAME_AW(ldap_next_attribute)
565 566 567
LDAPMessage * CDECL ldap_next_entry(LDAP*,LDAPMessage*);
LDAP * CDECL ldap_openA(PCHAR,ULONG);
LDAP * CDECL ldap_openW(PWCHAR,ULONG);
Hans Leidekker's avatar
Hans Leidekker committed
568
#define    ldap_open WINELIB_NAME_AW(ldap_open)
569 570
ULONG CDECL ldap_parse_extended_resultA(LDAP*,LDAPMessage*,PCHAR*,struct berval**,BOOLEAN);
ULONG CDECL ldap_parse_extended_resultW(LDAP*,LDAPMessage*,PWCHAR*,struct berval**,BOOLEAN);
Hans Leidekker's avatar
Hans Leidekker committed
571
#define    ldap_parse_extended_result WINELIB_NAME_AW(ldap_parse_extended_result)
572 573
ULONG CDECL ldap_parse_page_controlA(LDAP*,PLDAPControlA*,ULONG*,struct berval**);
ULONG CDECL ldap_parse_page_controlW(LDAP*,PLDAPControlW*,ULONG*,struct berval**);
Hans Leidekker's avatar
Hans Leidekker committed
574
#define    ldap_parse_page_control WINELIB_NAME_AW(ldap_parse_page_control)
575 576
ULONG CDECL ldap_parse_referenceA(LDAP*,LDAPMessage*,PCHAR**);
ULONG CDECL ldap_parse_referenceW(LDAP*,LDAPMessage*,PWCHAR**);
Hans Leidekker's avatar
Hans Leidekker committed
577
#define    ldap_parse_reference WINELIB_NAME_AW(ldap_parse_reference)
578 579 580
ULONG CDECL ldap_result2error(LDAP*,LDAPMessage*,ULONG);
ULONG CDECL ldap_parse_resultA(LDAP*,LDAPMessage*,ULONG*,PCHAR*,PCHAR*,PCHAR**,PLDAPControlA**,BOOLEAN);
ULONG CDECL ldap_parse_resultW(LDAP*,LDAPMessage*,ULONG*,PWCHAR*,PWCHAR*,PWCHAR**,PLDAPControlW**,BOOLEAN);
Hans Leidekker's avatar
Hans Leidekker committed
581
#define    ldap_parse_result WINELIB_NAME_AW(ldap_parse_result)
582 583
ULONG CDECL ldap_parse_sort_controlA(LDAP*,PLDAPControlA*,ULONG*,PCHAR*);
ULONG CDECL ldap_parse_sort_controlW(LDAP*,PLDAPControlW*,ULONG*,PWCHAR*);
Hans Leidekker's avatar
Hans Leidekker committed
584
#define    ldap_parse_sort_control WINELIB_NAME_AW(ldap_parse_sort_control)
585 586
INT CDECL ldap_parse_vlv_controlA(PLDAP,PLDAPControlA*,PULONG,PULONG,PBERVAL*,PINT);
INT CDECL ldap_parse_vlv_controlW(PLDAP,PLDAPControlW*,PULONG,PULONG,PBERVAL*,PINT);
Hans Leidekker's avatar
Hans Leidekker committed
587
#define    ldap_parse_vlv_control WINELIB_NAME_AW(ldap_parse_vlv_control)
588 589 590
void CDECL ldap_perror(LDAP*,const PCHAR);
ULONG CDECL ldap_rename_extA(LDAP*,PCHAR,PCHAR,PCHAR,INT,PLDAPControlA*,PLDAPControlA*,ULONG*);
ULONG CDECL ldap_rename_extW(LDAP*,PWCHAR,PWCHAR,PWCHAR,INT,PLDAPControlW*,PLDAPControlW*,ULONG*);
Hans Leidekker's avatar
Hans Leidekker committed
591
#define    ldap_rename_ext WINELIB_NAME_AW(ldap_rename_ext)
592 593
ULONG CDECL ldap_rename_ext_sA(LDAP*,PCHAR,PCHAR,PCHAR,INT,PLDAPControlA*,PLDAPControlA*);
ULONG CDECL ldap_rename_ext_sW(LDAP*,PWCHAR,PWCHAR,PWCHAR,INT,PLDAPControlW*,PLDAPControlW*);
Hans Leidekker's avatar
Hans Leidekker committed
594
#define    ldap_rename_ext_s WINELIB_NAME_AW(ldap_rename_ext_s)
595 596 597 598
ULONG CDECL ldap_result(LDAP*,ULONG,ULONG,struct l_timeval*,LDAPMessage**);
ULONG CDECL ldap_result2error(LDAP*,LDAPMessage*,ULONG);
ULONG CDECL ldap_sasl_bindA(LDAP*,const PCHAR,const PCHAR,const BERVAL*,PLDAPControlA*,PLDAPControlA*,int*);
ULONG CDECL ldap_sasl_bindW(LDAP*,const PWCHAR,const PWCHAR,const BERVAL*,PLDAPControlW*,PLDAPControlW*,int*);
Hans Leidekker's avatar
Hans Leidekker committed
599
#define    ldap_sasl_bind WINELIB_NAME_AW(ldap_sasl_bind)
600 601
ULONG CDECL ldap_sasl_bind_sA(LDAP*,const PCHAR,const PCHAR,const BERVAL*,PLDAPControlA*,PLDAPControlA*,PBERVAL*);
ULONG CDECL ldap_sasl_bind_sW(LDAP*,const PWCHAR,const PWCHAR,const BERVAL*,PLDAPControlW*,PLDAPControlW*,PBERVAL*);
Hans Leidekker's avatar
Hans Leidekker committed
602
#define    ldap_sasl_bind_s WINELIB_NAME_AW(ldap_sasl_bind_s)
603 604
ULONG CDECL ldap_simple_bindA(LDAP*,PCHAR,PCHAR);
ULONG CDECL ldap_simple_bindW(LDAP*,PWCHAR,PWCHAR);
Hans Leidekker's avatar
Hans Leidekker committed
605
#define    ldap_simple_bind WINELIB_NAME_AW(ldap_simple_bind)
606 607
ULONG CDECL ldap_simple_bind_sA(LDAP*,PCHAR,PCHAR);
ULONG CDECL ldap_simple_bind_sW(LDAP*,PWCHAR,PWCHAR);
Hans Leidekker's avatar
Hans Leidekker committed
608
#define    ldap_simple_bind_s WINELIB_NAME_AW(ldap_simple_bind_s)
609 610
ULONG CDECL ldap_search_abandon_page(PLDAP,PLDAPSearch);
ULONG CDECL ldap_searchA(LDAP*,PCHAR,ULONG,PCHAR,PCHAR[],ULONG);
611
ULONG CDECL ldap_searchW(LDAP*,PWCHAR,ULONG,PWCHAR,PWCHAR[],ULONG);
Hans Leidekker's avatar
Hans Leidekker committed
612
#define    ldap_search WINELIB_NAME_AW(ldap_search)
613
ULONG CDECL ldap_search_extA(LDAP*,PCHAR,ULONG,PCHAR,PCHAR[],ULONG,PLDAPControlA*,
Hans Leidekker's avatar
Hans Leidekker committed
614
    PLDAPControlA*,ULONG,ULONG,ULONG*);
615
ULONG CDECL ldap_search_extW(LDAP*,PWCHAR,ULONG,PWCHAR,PWCHAR[],ULONG,PLDAPControlW*,
Hans Leidekker's avatar
Hans Leidekker committed
616 617
    PLDAPControlW*,ULONG,ULONG,ULONG*);
#define    ldap_search_ext WINELIB_NAME_AW(ldap_search_ext)
618
ULONG CDECL ldap_search_ext_sA(LDAP*,PCHAR,ULONG,PCHAR,PCHAR[],ULONG,PLDAPControlA*,
619
    PLDAPControlA*,struct l_timeval*,ULONG,LDAPMessage**);
620
ULONG CDECL ldap_search_ext_sW(LDAP*,PWCHAR,ULONG,PWCHAR,PWCHAR[],ULONG,PLDAPControlW*,
621
    PLDAPControlW*,struct l_timeval*,ULONG,LDAPMessage**);
Hans Leidekker's avatar
Hans Leidekker committed
622
#define    ldap_search_ext_s WINELIB_NAME_AW(ldap_search_ext_s)
623
PLDAPSearch CDECL ldap_search_init_pageA(PLDAP,PCHAR,ULONG,PCHAR,PCHAR[],ULONG,PLDAPControlA*,
Hans Leidekker's avatar
Hans Leidekker committed
624
    PLDAPControlA*,ULONG,ULONG,PLDAPSortKeyA*);
625
PLDAPSearch CDECL ldap_search_init_pageW(PLDAP,PWCHAR,ULONG,PWCHAR,PWCHAR[],ULONG,PLDAPControlW*,
Hans Leidekker's avatar
Hans Leidekker committed
626 627
    PLDAPControlW*,ULONG,ULONG, PLDAPSortKeyW*);
#define    ldap_search_init_page WINELIB_NAME_AW(ldap_search_init_page)
628 629
ULONG CDECL ldap_search_sA(LDAP*,PCHAR,ULONG,PCHAR,PCHAR[],ULONG,LDAPMessage**);
ULONG CDECL ldap_search_sW(LDAP*,PWCHAR,ULONG,PWCHAR,PWCHAR[],ULONG,LDAPMessage**);
Hans Leidekker's avatar
Hans Leidekker committed
630
#define    ldap_search_s WINELIB_NAME_AW(ldap_search_s)
631
ULONG CDECL ldap_search_stA(LDAP*,const PCHAR,ULONG,const PCHAR,PCHAR[],ULONG,
Hans Leidekker's avatar
Hans Leidekker committed
632
    struct l_timeval*,LDAPMessage**);
633
ULONG CDECL ldap_search_stW(LDAP*,const PWCHAR,ULONG,const PWCHAR,PWCHAR[],ULONG,
Hans Leidekker's avatar
Hans Leidekker committed
634 635
    struct l_timeval*,LDAPMessage**);
#define    ldap_search_st WINELIB_NAME_AW(ldap_search_st)
636 637
ULONG CDECL ldap_set_optionA(LDAP*,int,void*);
ULONG CDECL ldap_set_optionW(LDAP*,int,void*);
Hans Leidekker's avatar
Hans Leidekker committed
638
#define    ldap_set_option WINELIB_NAME_AW(ldap_set_option)
639 640
LDAP * CDECL ldap_sslinitA(PCHAR,ULONG,int);
LDAP * CDECL ldap_sslinitW(PWCHAR,ULONG,int);
Hans Leidekker's avatar
Hans Leidekker committed
641
#define    ldap_sslinit WINELIB_NAME_AW(ldap_sslinit)
642 643
ULONG CDECL ldap_start_tls_sA(LDAP*,PULONG,LDAPMessage**,PLDAPControlA*,PLDAPControlA*);
ULONG CDECL ldap_start_tls_sW(LDAP*,PULONG,LDAPMessage**,PLDAPControlW*,PLDAPControlW*);
Hans Leidekker's avatar
Hans Leidekker committed
644
#define    ldap_start_tls_s WINELIB_NAME_AW(ldap_start_tls_s)
645 646 647 648
ULONG CDECL ldap_startup(PLDAP_VERSION_INFO,HANDLE*);
BOOLEAN CDECL ldap_stop_tls_s(LDAP*);
ULONG CDECL ldap_ufn2dnA(PCHAR,PCHAR*);
ULONG CDECL ldap_ufn2dnW(PWCHAR,PWCHAR*);
Hans Leidekker's avatar
Hans Leidekker committed
649
#define    ldap_ufn2dn WINELIB_NAME_AW(ldap_ufn2dn)
650 651 652 653 654 655 656 657 658
ULONG CDECL ldap_unbind(LDAP*);
ULONG CDECL ldap_unbind_s(LDAP*);

void CDECL ber_bvfree(BERVAL*);

ULONG CDECL LdapGetLastError(void);
ULONG CDECL LdapMapErrorToWin32(ULONG);
int CDECL LdapUnicodeToUTF8(LPCWSTR,int,LPSTR,int);
int CDECL LdapUTF8ToUnicode(LPCSTR,int,LPWSTR,int);
659

660 661 662 663
#ifdef __cplusplus
}
#endif

664
#endif  /* __WINE_WINLDAP_H */