#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.
233 if (!hostnameW)
goto exit;
static void strfreeW(LPWSTR str)
static LPWSTR strAtoW(const char *str)
WLDAP32_LDAP *CDECL cldap_openW(PWCHAR hostname, ULONG portnumber)
◆ cldap_openW()
Definition at line 268 of file init.c.
278 if (!hostnameU)
goto exit;
281 hostnameU =
strWtoU( defaulthost );
282 if (!hostnameU)
goto exit;
285 url = urlify_hostnames(
"cldap://", hostnameU, portnumber );
288 ld = create_context(
url );
static char * strWtoU(LPCWSTR str)
static void strfreeU(char *str)
Referenced by cldap_openA().
◆ ldap_connect()
◆ ldap_initA()
Definition at line 331 of file init.c.
341 if (!hostnameW)
goto exit;
static void strfreeW(LPWSTR str)
static LPWSTR strAtoW(const char *str)
WLDAP32_LDAP *CDECL ldap_initW(const PWCHAR hostname, ULONG portnumber)
Referenced by START_TEST().
◆ ldap_initW()
Definition at line 377 of file init.c.
387 if (!hostnameU)
goto exit;
390 hostnameU =
strWtoU( defaulthost );
391 if (!hostnameU)
goto exit;
394 url = urlify_hostnames(
"ldap://", hostnameU, portnumber );
397 ld = create_context(
url );
static char * strWtoU(LPCWSTR str)
static void strfreeU(char *str)
Referenced by ldap_initA().
◆ ldap_openA()
Definition at line 414 of file init.c.
424 if (!hostnameW)
goto exit;
static void strfreeW(LPWSTR str)
static LPWSTR strAtoW(const char *str)
WLDAP32_LDAP *CDECL ldap_openW(PWCHAR hostname, ULONG portnumber)
◆ ldap_openW()
Definition at line 459 of file init.c.
469 if (!hostnameU)
goto exit;
472 hostnameU =
strWtoU( defaulthost );
473 if (!hostnameU)
goto exit;
476 url = urlify_hostnames(
"ldap://", hostnameU, portnumber );
479 ld = create_context(
url );
static char * strWtoU(LPCWSTR str)
static void strfreeU(char *str)
Referenced by ldap_openA().
◆ ldap_sslinitA()
Definition at line 496 of file init.c.
506 if (!hostnameW)
return NULL;
static void strfreeW(LPWSTR str)
WLDAP32_LDAP *CDECL ldap_sslinitW(PWCHAR hostname, ULONG portnumber, int secure)
static LPWSTR strAtoW(const char *str)
◆ ldap_sslinitW()
Definition at line 542 of file init.c.
552 if (!hostnameU)
goto exit;
555 hostnameU =
strWtoU( defaulthost );
556 if (!hostnameU)
goto exit;
560 url = urlify_hostnames(
"ldaps://", hostnameU, portnumber );
562 url = urlify_hostnames(
"ldap://", hostnameU, portnumber );
565 ldap_initialize( &ld,
url );
static char * strWtoU(LPCWSTR str)
static void strfreeU(char *str)
Referenced by ldap_sslinitA().
◆ ldap_start_tls_sA()
Definition at line 582 of file init.c.
591 TRACE(
"(%p, %p, %p, %p, %p)\n", ld, retval,
result, serverctrls, clientctrls );
596 serverctrlsW = controlarrayAtoW( serverctrls );
597 if (!serverctrlsW)
goto exit;
600 clientctrlsW = controlarrayAtoW( clientctrls );
601 if (!clientctrlsW)
goto exit;
607 controlarrayfreeW( serverctrlsW );
608 controlarrayfreeW( clientctrlsW );
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
ULONG CDECL ldap_start_tls_sW(WLDAP32_LDAP *ld, PULONG retval, WLDAP32_LDAPMessage **result, PLDAPControlW *serverctrls, PLDAPControlW *clientctrls)
◆ ldap_start_tls_sW()
Definition at line 633 of file init.c.
642 TRACE(
"(%p, %p, %p, %p, %p)\n", ld, retval,
result, serverctrls, clientctrls );
647 serverctrlsU = controlarrayWtoU( serverctrls );
648 if (!serverctrlsU)
goto exit;
651 clientctrlsU = controlarrayWtoU( clientctrls );
652 if (!clientctrlsU)
goto exit;
658 controlarrayfreeU( serverctrlsU );
659 controlarrayfreeU( clientctrlsU );
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
static UINT map_error(DWORD error)
Referenced by ldap_start_tls_sA().
◆ ldap_startup()
Definition at line 668 of file init.c.
static const WCHAR version[]
static HINSTANCE instance
◆ ldap_stop_tls_s()
◆ WINE_DEFAULT_DEBUG_CHANNEL()
WINE_DEFAULT_DEBUG_CHANNEL |
( |
wldap32 |
| ) |
|