#include "config.h"
#include "wine/port.h"
#include <stdarg.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 | ldap_compareA (WLDAP32_LDAP *ld, PCHAR dn, PCHAR attr, PCHAR value) |
|
ULONG CDECL | ldap_compareW (WLDAP32_LDAP *ld, PWCHAR dn, PWCHAR attr, PWCHAR value) |
|
ULONG CDECL | ldap_compare_extA (WLDAP32_LDAP *ld, PCHAR dn, PCHAR attr, PCHAR value, struct WLDAP32_berval *data, PLDAPControlA *serverctrls, PLDAPControlA *clientctrls, ULONG *message) |
|
ULONG CDECL | ldap_compare_extW (WLDAP32_LDAP *ld, PWCHAR dn, PWCHAR attr, PWCHAR value, struct WLDAP32_berval *data, PLDAPControlW *serverctrls, PLDAPControlW *clientctrls, ULONG *message) |
|
ULONG CDECL | ldap_compare_ext_sA (WLDAP32_LDAP *ld, PCHAR dn, PCHAR attr, PCHAR value, struct WLDAP32_berval *data, PLDAPControlA *serverctrls, PLDAPControlA *clientctrls) |
|
ULONG CDECL | ldap_compare_ext_sW (WLDAP32_LDAP *ld, PWCHAR dn, PWCHAR attr, PWCHAR value, struct WLDAP32_berval *data, PLDAPControlW *serverctrls, PLDAPControlW *clientctrls) |
|
ULONG CDECL | ldap_compare_sA (WLDAP32_LDAP *ld, PCHAR dn, PCHAR attr, PCHAR value) |
|
ULONG CDECL | ldap_compare_sW (WLDAP32_LDAP *ld, PWCHAR dn, PWCHAR attr, PWCHAR value) |
|
◆ ldap_compare_ext_sA()
Definition at line 288 of file compare.c.
290{
292#ifdef HAVE_LDAP
295
297
300 clientctrls );
301
303
304 if (dn) {
307 }
310 if (!attrW)
goto exit;
311 }
315 }
316 if (serverctrls) {
317 serverctrlsW = controlarrayAtoW( serverctrls );
318 if (!serverctrlsW)
goto exit;
319 }
320 if (clientctrls) {
321 clientctrlsW = controlarrayAtoW( clientctrls );
322 if (!clientctrlsW)
goto exit;
323 }
324
326 clientctrlsW );
327
332 controlarrayfreeW( serverctrlsW );
333 controlarrayfreeW( clientctrlsW );
334
335#endif
337}
ULONG CDECL ldap_compare_ext_sW(WLDAP32_LDAP *ld, PWCHAR dn, PWCHAR attr, PWCHAR value, struct WLDAP32_berval *data, PLDAPControlW *serverctrls, PLDAPControlW *clientctrls)
static const WCHAR valueW[]
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
static LPWSTR strAtoW(const char *str)
@ WLDAP32_LDAP_PARAM_ERROR
@ WLDAP32_LDAP_NOT_SUPPORTED
static void strfreeW(LPWSTR str)
◆ ldap_compare_ext_sW()
Definition at line 362 of file compare.c.
364{
366#ifdef HAVE_LDAP
370
372
375 clientctrls );
376
378
379 if (dn) {
382 }
385 if (!attrU)
goto exit;
386 }
390 if (!valueU)
goto exit;
391
394 }
395 }
396 if (serverctrls) {
397 serverctrlsU = controlarrayWtoU( serverctrls );
398 if (!serverctrlsU)
goto exit;
399 }
400 if (clientctrls) {
401 clientctrlsU = controlarrayWtoU( clientctrls );
402 if (!clientctrlsU)
goto exit;
403 }
404
407 serverctrlsU, clientctrlsU ));
408
413 controlarrayfreeU( serverctrlsU );
414 controlarrayfreeU( clientctrlsU );
415
416#endif
418}
ACPI_SIZE strlen(const char *String)
static UINT map_error(DWORD error)
#define ldap_compare_ext_s
static void strfreeU(char *str)
static char * strWtoU(LPCWSTR str)
Referenced by ldap_compare_ext_sA().
◆ ldap_compare_extA()
Definition at line 148 of file compare.c.
151{
153#ifdef HAVE_LDAP
156
158
159 TRACE(
"(%p, %s, %s, %s, %p, %p, %p, %p)\n", ld,
debugstr_a(dn),
162
164
165 if (dn) {
168 }
171 if (!attrW)
goto exit;
172 }
176 }
177 if (serverctrls) {
178 serverctrlsW = controlarrayAtoW( serverctrls );
179 if (!serverctrlsW)
goto exit;
180 }
181 if (clientctrls) {
182 clientctrlsW = controlarrayAtoW( clientctrls );
183 if (!clientctrlsW)
goto exit;
184 }
185
187 serverctrlsW, clientctrlsW,
message );
188
193 controlarrayfreeW( serverctrlsW );
194 controlarrayfreeW( clientctrlsW );
195
196#endif
198}
ULONG CDECL ldap_compare_extW(WLDAP32_LDAP *ld, PWCHAR dn, PWCHAR attr, PWCHAR value, struct WLDAP32_berval *data, PLDAPControlW *serverctrls, PLDAPControlW *clientctrls, ULONG *message)
◆ ldap_compare_extW()
Definition at line 224 of file compare.c.
227{
229#ifdef HAVE_LDAP
233
235
236 TRACE(
"(%p, %s, %s, %s, %p, %p, %p, %p)\n", ld,
debugstr_w(dn),
239
242
243 if (dn) {
246 }
247
249 if (!attrU)
goto exit;
250
254 if (!valueU)
goto exit;
255
258 }
259 }
260 if (serverctrls) {
261 serverctrlsU = controlarrayWtoU( serverctrls );
262 if (!serverctrlsU)
goto exit;
263 }
264 if (clientctrls) {
265 clientctrlsU = controlarrayWtoU( clientctrls );
266 if (!clientctrlsU)
goto exit;
267 }
268
270 serverctrlsU, clientctrlsU, (
int *)
message ));
271
276 controlarrayfreeU( serverctrlsU );
277 controlarrayfreeU( clientctrlsU );
278
279#endif
281}
Referenced by ldap_compare_extA().
◆ ldap_compare_sA()
Definition at line 425 of file compare.c.
426{
428#ifdef HAVE_LDAP
430
432
435
437
438 if (dn) {
441 }
444 if (!attrW)
goto exit;
445 }
449 }
450
452
457
458#endif
460}
ULONG CDECL ldap_compare_sW(WLDAP32_LDAP *ld, PWCHAR dn, PWCHAR attr, PWCHAR value)
◆ ldap_compare_sW()
Definition at line 477 of file compare.c.
478{
480#ifdef HAVE_LDAP
483
485
488
490
491 if (dn) {
494 }
497 if (!attrU)
goto exit;
498 }
501 if (!valueU)
goto exit;
502
505 }
506
508
513
514#endif
516}
Referenced by ldap_compare_sA().
◆ ldap_compareA()
Definition at line 44 of file compare.c.
45{
47#ifdef HAVE_LDAP
49
51
54
55 if (!ld || !
attr)
return ~0
u;
56
57 if (dn) {
60 }
61
63 if (!attrW)
goto exit;
64
68 }
69
71
76
77#endif
79}
ULONG CDECL ldap_compareW(WLDAP32_LDAP *ld, PWCHAR dn, PWCHAR attr, PWCHAR value)
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
◆ ldap_compareW()
Definition at line 96 of file compare.c.
97{
99#ifdef HAVE_LDAP
103
105
108
109 if (!ld || !
attr)
return ~0
u;
110
111 if (dn) {
114 }
115
117 if (!attrU)
goto exit;
118
121 if (!valueU)
goto exit;
122
125 }
126
128
131 else
133
138
139#endif
141}
Referenced by ldap_compareA().
◆ WINE_DEFAULT_DEBUG_CHANNEL()
WINE_DEFAULT_DEBUG_CHANNEL |
( |
wldap32 |
| ) |
|