#include "config.h"
#include "wine/port.h"
#include <stdio.h>
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "winnls.h"
#include "wine/winternl.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) |
|
WLDAP32_LDAP *CDECL | cldap_openA (PCHAR hostname, ULONG portnumber) |
|
WLDAP32_LDAP *CDECL | cldap_openW (PWCHAR hostname, ULONG portnumber) |
|
ULONG CDECL | ldap_connect (WLDAP32_LDAP *ld, struct l_timeval *timeout) |
|
WLDAP32_LDAP *CDECL | ldap_initA (const PCHAR hostname, ULONG portnumber) |
|
WLDAP32_LDAP *CDECL | ldap_initW (const PWCHAR hostname, ULONG portnumber) |
|
WLDAP32_LDAP *CDECL | ldap_openA (PCHAR hostname, ULONG portnumber) |
|
WLDAP32_LDAP *CDECL | ldap_openW (PWCHAR hostname, ULONG portnumber) |
|
WLDAP32_LDAP *CDECL | ldap_sslinitA (PCHAR hostname, ULONG portnumber, int secure) |
|
WLDAP32_LDAP *CDECL | ldap_sslinitW (PWCHAR hostname, ULONG portnumber, int secure) |
|
ULONG CDECL | ldap_start_tls_sA (WLDAP32_LDAP *ld, PULONG retval, WLDAP32_LDAPMessage **result, PLDAPControlA *serverctrls, PLDAPControlA *clientctrls) |
|
ULONG CDECL | ldap_start_tls_sW (WLDAP32_LDAP *ld, PULONG retval, WLDAP32_LDAPMessage **result, PLDAPControlW *serverctrls, PLDAPControlW *clientctrls) |
|
ULONG CDECL | ldap_startup (PLDAP_VERSION_INFO version, HANDLE *instance) |
|
BOOLEAN CDECL | ldap_stop_tls_s (WLDAP32_LDAP *ld) |
|
◆ cldap_openA()
Definition at line 223 of file init.c.
224{
225#ifdef HAVE_LDAP
228
230
233 if (!hostnameW)
goto exit;
234 }
235
237
240 return ld;
241
242#else
244#endif
245}
WLDAP32_LDAP *CDECL cldap_openW(PWCHAR hostname, ULONG portnumber)
static LPWSTR strAtoW(const char *str)
static void strfreeW(LPWSTR str)
◆ cldap_openW()
Definition at line 268 of file init.c.
269{
270#ifdef HAVE_LDAP
273
275
278 if (!hostnameU)
goto exit;
279 }
280 else {
281 hostnameU =
strWtoU( defaulthost );
282 if (!hostnameU)
goto exit;
283 }
284
285 url = urlify_hostnames(
"cldap://", hostnameU, portnumber );
287
288 ld = create_context(
url );
289
293 return ld;
294
295#else
297#endif
298}
static void strfreeU(char *str)
static char * strWtoU(LPCWSTR str)
Referenced by cldap_openA().
◆ ldap_connect()
Definition at line 318 of file init.c.
319{
321
324}
@ WLDAP32_LDAP_PARAM_ERROR
◆ ldap_initA()
Definition at line 331 of file init.c.
332{
333#ifdef HAVE_LDAP
336
338
341 if (!hostnameW)
goto exit;
342 }
343
345
348 return ld;
349
350#else
352#endif
353}
WLDAP32_LDAP *CDECL ldap_initW(const PWCHAR hostname, ULONG portnumber)
Referenced by START_TEST().
◆ ldap_initW()
Definition at line 377 of file init.c.
378{
379#ifdef HAVE_LDAP
382
384
387 if (!hostnameU)
goto exit;
388 }
389 else {
390 hostnameU =
strWtoU( defaulthost );
391 if (!hostnameU)
goto exit;
392 }
393
394 url = urlify_hostnames(
"ldap://", hostnameU, portnumber );
396
397 ld = create_context(
url );
398
402 return ld;
403
404#else
406#endif
407}
Referenced by ldap_initA().
◆ ldap_openA()
Definition at line 414 of file init.c.
415{
416#ifdef HAVE_LDAP
419
421
424 if (!hostnameW)
goto exit;
425 }
426
428
431 return ld;
432
433#else
435#endif
436}
WLDAP32_LDAP *CDECL ldap_openW(PWCHAR hostname, ULONG portnumber)
◆ ldap_openW()
Definition at line 459 of file init.c.
460{
461#ifdef HAVE_LDAP
464
466
469 if (!hostnameU)
goto exit;
470 }
471 else {
472 hostnameU =
strWtoU( defaulthost );
473 if (!hostnameU)
goto exit;
474 }
475
476 url = urlify_hostnames(
"ldap://", hostnameU, portnumber );
478
479 ld = create_context(
url );
480
484 return ld;
485
486#else
488#endif
489}
Referenced by ldap_openA().
◆ ldap_sslinitA()
Definition at line 496 of file init.c.
497{
498#ifdef HAVE_LDAP
501
503
506 if (!hostnameW)
return NULL;
507 }
508
510
512 return ld;
513
514#else
516#endif
517}
WLDAP32_LDAP *CDECL ldap_sslinitW(PWCHAR hostname, ULONG portnumber, int secure)
◆ ldap_sslinitW()
Definition at line 542 of file init.c.
543{
544#ifdef HAVE_LDAP
547
549
552 if (!hostnameU)
goto exit;
553 }
554 else {
555 hostnameU =
strWtoU( defaulthost );
556 if (!hostnameU)
goto exit;
557 }
558
560 url = urlify_hostnames(
"ldaps://", hostnameU, portnumber );
561 else
562 url = urlify_hostnames(
"ldap://", hostnameU, portnumber );
563
565 ldap_initialize( &ld,
url );
566
570 return ld;
571
572#else
574#endif
575}
Referenced by ldap_sslinitA().
◆ ldap_start_tls_sA()
Definition at line 582 of file init.c.
584{
586#ifdef HAVE_LDAP
588
590
592
594
595 if (serverctrls) {
596 serverctrlsW = controlarrayAtoW( serverctrls );
597 if (!serverctrlsW)
goto exit;
598 }
599 if (clientctrls) {
600 clientctrlsW = controlarrayAtoW( clientctrls );
601 if (!clientctrlsW)
goto exit;
602 }
603
605
607 controlarrayfreeW( serverctrlsW );
608 controlarrayfreeW( clientctrlsW );
609
610#endif
612}
ULONG CDECL ldap_start_tls_sW(WLDAP32_LDAP *ld, PULONG retval, WLDAP32_LDAPMessage **result, PLDAPControlW *serverctrls, PLDAPControlW *clientctrls)
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
◆ ldap_start_tls_sW()
Definition at line 633 of file init.c.
635{
637#ifdef HAVE_LDAP
639
641
643
645
646 if (serverctrls) {
647 serverctrlsU = controlarrayWtoU( serverctrls );
648 if (!serverctrlsU)
goto exit;
649 }
650 if (clientctrls) {
651 clientctrlsU = controlarrayWtoU( clientctrls );
652 if (!clientctrlsU)
goto exit;
653 }
654
656
658 controlarrayfreeU( serverctrlsU );
659 controlarrayfreeU( clientctrlsU );
660
661#endif
663}
static UINT map_error(DWORD error)
Referenced by ldap_start_tls_sA().
◆ ldap_startup()
Definition at line 668 of file init.c.
669{
672}
static HINSTANCE instance
static const WCHAR version[]
◆ ldap_stop_tls_s()
Definition at line 686 of file init.c.
687{
688 TRACE(
"(%p)\n", ld );
690}
◆ WINE_DEFAULT_DEBUG_CHANNEL()
WINE_DEFAULT_DEBUG_CHANNEL |
( |
wldap32 |
| ) |
|