#include "config.h"
#include "wine/port.h"
#include <stdarg.h>
#include <stdio.h>
#include "windef.h"
#include "winbase.h"
#include "winnls.h"
#include "winldap_private.h"
#include "wldap32.h"
#include "wine/debug.h"
Go to the source code of this file.
|
| WINE_DEFAULT_DEBUG_CHANNEL (wldap32) |
|
ULONG CDECL | WLDAP32_ldap_abandon (WLDAP32_LDAP *ld, ULONG msgid) |
|
ULONG CDECL | ldap_check_filterA (WLDAP32_LDAP *ld, PCHAR filter) |
|
ULONG CDECL | ldap_check_filterW (WLDAP32_LDAP *ld, PWCHAR filter) |
|
ULONG CDECL | ldap_cleanup (HANDLE instance) |
|
WLDAP32_LDAP *CDECL | ldap_conn_from_msg (WLDAP32_LDAP *ld, WLDAP32_LDAPMessage *res) |
|
ULONG CDECL | WLDAP32_ldap_count_entries (WLDAP32_LDAP *ld, WLDAP32_LDAPMessage *res) |
|
ULONG CDECL | WLDAP32_ldap_count_references (WLDAP32_LDAP *ld, WLDAP32_LDAPMessage *res) |
|
static ULONG | get_escape_size (PCHAR src, ULONG srclen) |
|
static void | escape_filter_element (PCHAR src, ULONG srclen, PCHAR dst) |
|
ULONG CDECL | ldap_escape_filter_elementA (PCHAR src, ULONG srclen, PCHAR dst, ULONG dstlen) |
|
ULONG CDECL | ldap_escape_filter_elementW (PCHAR src, ULONG srclen, PWCHAR dst, ULONG dstlen) |
|
PCHAR CDECL | ldap_first_attributeA (WLDAP32_LDAP *ld, WLDAP32_LDAPMessage *entry, WLDAP32_BerElement **ptr) |
|
PWCHAR CDECL | ldap_first_attributeW (WLDAP32_LDAP *ld, WLDAP32_LDAPMessage *entry, WLDAP32_BerElement **ptr) |
|
WLDAP32_LDAPMessage *CDECL | WLDAP32_ldap_first_entry (WLDAP32_LDAP *ld, WLDAP32_LDAPMessage *res) |
|
WLDAP32_LDAPMessage *CDECL | WLDAP32_ldap_first_reference (WLDAP32_LDAP *ld, WLDAP32_LDAPMessage *res) |
|
void CDECL | ldap_memfreeA (PCHAR block) |
|
void CDECL | ldap_memfreeW (PWCHAR block) |
|
ULONG CDECL | WLDAP32_ldap_msgfree (WLDAP32_LDAPMessage *res) |
|
PCHAR CDECL | ldap_next_attributeA (WLDAP32_LDAP *ld, WLDAP32_LDAPMessage *entry, WLDAP32_BerElement *ptr) |
|
PWCHAR CDECL | ldap_next_attributeW (WLDAP32_LDAP *ld, WLDAP32_LDAPMessage *entry, WLDAP32_BerElement *ptr) |
|
WLDAP32_LDAPMessage *CDECL | WLDAP32_ldap_next_entry (WLDAP32_LDAP *ld, WLDAP32_LDAPMessage *entry) |
|
WLDAP32_LDAPMessage *CDECL | WLDAP32_ldap_next_reference (WLDAP32_LDAP *ld, WLDAP32_LDAPMessage *entry) |
|
ULONG CDECL | WLDAP32_ldap_result (WLDAP32_LDAP *ld, ULONG msgid, ULONG all, struct l_timeval *timeout, WLDAP32_LDAPMessage **res) |
|
int CDECL | LdapUnicodeToUTF8 (LPCWSTR src, int srclen, LPSTR dst, int dstlen) |
|
int CDECL | LdapUTF8ToUnicode (LPCSTR src, int srclen, LPWSTR dst, int dstlen) |
|
◆ escape_filter_element()
Definition at line 216 of file misc.c.
217{
219 static const char fmt[] =
"\\%02X";
221
223 {
224 if ((
src[
i] >=
'0' &&
src[
i] <=
'9') ||
228 else
230 }
232}
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define sprintf(buf, format,...)
static DWORD LPDWORD LPCSTR DWORD srclen
Referenced by ldap_escape_filter_elementA().
◆ get_escape_size()
◆ ldap_check_filterA()
Definition at line 72 of file misc.c.
73{
76
78
80
84 }
85
87
90}
ULONG CDECL ldap_check_filterW(WLDAP32_LDAP *ld, PWCHAR filter)
GLint GLint GLint GLint GLint GLint GLint GLbitfield GLenum filter
static LPWSTR strAtoW(const char *str)
@ WLDAP32_LDAP_PARAM_ERROR
static void strfreeW(LPWSTR str)
◆ ldap_check_filterW()
◆ ldap_cleanup()
Definition at line 116 of file misc.c.
117{
120}
static HINSTANCE instance
◆ ldap_conn_from_msg()
Definition at line 135 of file misc.c.
136{
138
140 return ld;
141}
◆ ldap_escape_filter_elementA()
Definition at line 239 of file misc.c.
240{
242
244
247
250 else
251 {
254 }
255}
static ULONG get_escape_size(PCHAR src, ULONG srclen)
static void escape_filter_element(PCHAR src, ULONG srclen, PCHAR dst)
◆ ldap_escape_filter_elementW()
Definition at line 272 of file misc.c.
273{
275
277
280
281
283}
◆ ldap_first_attributeA()
Definition at line 290 of file misc.c.
292{
294#ifdef HAVE_LDAP
296
298
301
304
305#endif
307}
PWCHAR CDECL ldap_first_attributeW(WLDAP32_LDAP *ld, WLDAP32_LDAPMessage *entry, WLDAP32_BerElement **ptr)
void CDECL ldap_memfreeW(PWCHAR block)
static LPSTR strWtoA(LPCWSTR str)
◆ ldap_first_attributeW()
Definition at line 326 of file misc.c.
328{
330#ifdef HAVE_LDAP
331 char *retU;
332
334
337
340
341#endif
343}
#define ldap_first_attribute
static LPWSTR strUtoW(char *str)
Referenced by ldap_first_attributeA().
◆ ldap_memfreeA()
Definition at line 407 of file misc.c.
408{
411}
static void strfreeA(LPSTR str)
static unsigned int block
◆ ldap_memfreeW()
◆ ldap_next_attributeA()
Definition at line 452 of file misc.c.
454{
456#ifdef HAVE_LDAP
458
460
463
466
467#endif
469}
PWCHAR CDECL ldap_next_attributeW(WLDAP32_LDAP *ld, WLDAP32_LDAPMessage *entry, WLDAP32_BerElement *ptr)
◆ ldap_next_attributeW()
Definition at line 489 of file misc.c.
491{
493#ifdef HAVE_LDAP
494 char *retU;
495
497
500
503
504#endif
506}
#define ldap_next_attribute
Referenced by ldap_next_attributeA().
◆ LdapUnicodeToUTF8()
Definition at line 636 of file misc.c.
637{
639}
#define WideCharToMultiByte
◆ LdapUTF8ToUnicode()
Definition at line 658 of file misc.c.
659{
661}
#define MultiByteToWideChar
◆ WINE_DEFAULT_DEBUG_CHANNEL()
WINE_DEFAULT_DEBUG_CHANNEL |
( |
wldap32 |
| ) |
|
◆ WLDAP32_ldap_abandon()
Definition at line 53 of file misc.c.
54{
56#ifdef HAVE_LDAP
57
58 TRACE(
"(%p, 0x%08x)\n", ld, msgid );
59
62
63#endif
65}
static UINT map_error(DWORD error)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble * u
@ WLDAP32_LDAP_NOT_SUPPORTED
◆ WLDAP32_ldap_count_entries()
Definition at line 156 of file misc.c.
157{
159#ifdef HAVE_LDAP
160
162
165
166#endif
168}
WINLDAPAPI ULONG ldap_count_entries(LDAP *, LDAPMessage *)
◆ WLDAP32_ldap_count_references()
Definition at line 183 of file misc.c.
184{
186#ifdef HAVE_LDAP_COUNT_REFERENCES
187
189
190 if (!ld) return 0;
192
193#endif
195}
WINLDAPAPI ULONG ldap_count_references(LDAP *, LDAPMessage *)
◆ WLDAP32_ldap_first_entry()
Definition at line 361 of file misc.c.
362{
363#ifdef HAVE_LDAP
364
366
369
370#else
372#endif
373}
WINLDAPAPI PLDAPMessage ldap_first_entry(LDAP *, LDAPMessage *)
◆ WLDAP32_ldap_first_reference()
Definition at line 388 of file misc.c.
389{
390#ifdef HAVE_LDAP_FIRST_REFERENCE
391
393
394 if (!ld)
return NULL;
396
397#else
399#endif
400}
WINLDAPAPI PLDAPMessage ldap_first_reference(LDAP *, LDAPMessage *)
◆ WLDAP32_ldap_msgfree()
Definition at line 435 of file misc.c.
436{
438#ifdef HAVE_LDAP
439
442
443#endif
445}
WINLDAPAPI ULONG ldap_msgfree(LDAPMessage *)
◆ WLDAP32_ldap_next_entry()
Definition at line 524 of file misc.c.
525{
526#ifdef HAVE_LDAP
527
529
532
533#else
535#endif
536}
WINLDAPAPI PLDAPMessage ldap_next_entry(LDAP *, LDAPMessage *)
◆ WLDAP32_ldap_next_reference()
Definition at line 554 of file misc.c.
555{
556#ifdef HAVE_LDAP_NEXT_REFERENCE
557
559
562
563#else
565#endif
566}
WINLDAPAPI PLDAPMessage ldap_next_reference(LDAP *, LDAPMessage *)
◆ WLDAP32_ldap_result()
Definition at line 604 of file misc.c.
606{
608#ifdef HAVE_LDAP
609
610 TRACE(
"(%p, 0x%08x, 0x%08x, %p, %p)\n", ld, msgid, all,
timeout,
res );
611
612 if (!ld || !
res || msgid == ~0
u)
return ~0
u;
614
615#endif
617}
WINLDAPAPI ULONG ldap_result(LDAP *, ULONG, ULONG, struct l_timeval *, LDAPMessage **)