#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_addA (WLDAP32_LDAP *ld, PCHAR dn, LDAPModA *attrs[]) |
| |
| ULONG CDECL | ldap_addW (WLDAP32_LDAP *ld, PWCHAR dn, LDAPModW *attrs[]) |
| |
| ULONG CDECL | ldap_add_extA (WLDAP32_LDAP *ld, PCHAR dn, LDAPModA *attrs[], PLDAPControlA *serverctrls, PLDAPControlA *clientctrls, ULONG *message) |
| |
| ULONG CDECL | ldap_add_extW (WLDAP32_LDAP *ld, PWCHAR dn, LDAPModW *attrs[], PLDAPControlW *serverctrls, PLDAPControlW *clientctrls, ULONG *message) |
| |
| ULONG CDECL | ldap_add_ext_sA (WLDAP32_LDAP *ld, PCHAR dn, LDAPModA *attrs[], PLDAPControlA *serverctrls, PLDAPControlA *clientctrls) |
| |
| ULONG CDECL | ldap_add_ext_sW (WLDAP32_LDAP *ld, PWCHAR dn, LDAPModW *attrs[], PLDAPControlW *serverctrls, PLDAPControlW *clientctrls) |
| |
| ULONG CDECL | ldap_add_sA (WLDAP32_LDAP *ld, PCHAR dn, LDAPModA *attrs[]) |
| |
| ULONG CDECL | ldap_add_sW (WLDAP32_LDAP *ld, PWCHAR dn, LDAPModW *attrs[]) |
| |
◆ ldap_add_ext_sA()
Definition at line 263 of file add.c.
265{
267#ifdef HAVE_LDAP
271
273
275 serverctrls, clientctrls );
276
278
279 if (dn) {
282 }
283 if (attrs) {
284 attrsW = modarrayAtoW( attrs );
285 if (!attrsW)
goto exit;
286 }
287 if (serverctrls) {
288 serverctrlsW = controlarrayAtoW( serverctrls );
289 if (!serverctrlsW)
goto exit;
290 }
291 if (clientctrls) {
292 clientctrlsW = controlarrayAtoW( clientctrls );
293 if (!clientctrlsW)
goto exit;
294 }
295
297
300 modarrayfreeW( attrsW );
301 controlarrayfreeW( serverctrlsW );
302 controlarrayfreeW( clientctrlsW );
303
304#endif
306}
ULONG CDECL ldap_add_ext_sW(WLDAP32_LDAP *ld, PWCHAR dn, LDAPModW *attrs[], PLDAPControlW *serverctrls, PLDAPControlW *clientctrls)
static LPWSTR strAtoW(const char *str)
@ WLDAP32_LDAP_PARAM_ERROR
@ WLDAP32_LDAP_NOT_SUPPORTED
static void strfreeW(LPWSTR str)
◆ ldap_add_ext_sW()
Definition at line 329 of file add.c.
331{
333#ifdef HAVE_LDAP
337
339
341 serverctrls, clientctrls );
342
344
345 if (dn) {
348 }
349 if (attrs) {
350 attrsU = modarrayWtoU( attrs );
351 if (!attrsU)
goto exit;
352 }
353 if (serverctrls) {
354 serverctrlsU = controlarrayWtoU( serverctrls );
355 if (!serverctrlsU)
goto exit;
356 }
357 if (clientctrls) {
358 clientctrlsU = controlarrayWtoU( clientctrls );
359 if (!clientctrlsU)
goto exit;
360 }
361
363 serverctrlsU, clientctrlsU ));
364
367 modarrayfreeU( attrsU );
368 controlarrayfreeU( serverctrlsU );
369 controlarrayfreeU( clientctrlsU );
370
371#endif
373}
static UINT map_error(DWORD error)
static void strfreeU(char *str)
static char * strWtoU(LPCWSTR str)
Referenced by ldap_add_ext_sA().
◆ ldap_add_extA()
Definition at line 143 of file add.c.
145{
147#ifdef HAVE_LDAP
151
153
155 serverctrls, clientctrls,
message );
156
158
159 if (dn) {
162 }
163 if (attrs) {
164 attrsW = modarrayAtoW( attrs );
165 if (!attrsW)
goto exit;
166 }
167 if (serverctrls) {
168 serverctrlsW = controlarrayAtoW( serverctrls );
169 if (!serverctrlsW)
goto exit;
170 }
171 if (clientctrls) {
172 clientctrlsW = controlarrayAtoW( clientctrls );
173 if (!clientctrlsW)
goto exit;
174 }
175
177
180 modarrayfreeW( attrsW );
181 controlarrayfreeW( serverctrlsW );
182 controlarrayfreeW( clientctrlsW );
183
184#endif
186}
ULONG CDECL ldap_add_extW(WLDAP32_LDAP *ld, PWCHAR dn, LDAPModW *attrs[], PLDAPControlW *serverctrls, PLDAPControlW *clientctrls, ULONG *message)
◆ ldap_add_extW()
Definition at line 211 of file add.c.
213{
215#ifdef HAVE_LDAP
220
222
224 serverctrls, clientctrls,
message );
225
227
228 if (dn) {
231 }
232 if (attrs) {
233 attrsU = modarrayWtoU( attrs );
234 if (!attrsU)
goto exit;
235 }
236 if (serverctrls) {
237 serverctrlsU = controlarrayWtoU( serverctrls );
238 if (!serverctrlsU)
goto exit;
239 }
240 if (clientctrls) {
241 clientctrlsU = controlarrayWtoU( clientctrls );
242 if (!clientctrlsU)
goto exit;
243 }
244
247
250 modarrayfreeU( attrsU );
251 controlarrayfreeU( serverctrlsU );
252 controlarrayfreeU( clientctrlsU );
253
254#endif
256}
Referenced by ldap_add_extA().
◆ ldap_add_sA()
Definition at line 380 of file add.c.
381{
383#ifdef HAVE_LDAP
386
388
390
392
393 if (dn) {
396 }
397 if (attrs) {
398 attrsW = modarrayAtoW( attrs );
399 if (!attrsW)
goto exit;
400 }
401
403
406 modarrayfreeW( attrsW );
407
408#endif
410}
ULONG CDECL ldap_add_sW(WLDAP32_LDAP *ld, PWCHAR dn, LDAPModW *attrs[])
◆ ldap_add_sW()
Definition at line 427 of file add.c.
428{
430#ifdef HAVE_LDAP
433
435
437
439
440 if (dn) {
443 }
444 if (attrs) {
445 attrsU = modarrayWtoU( attrs );
446 if (!attrsU)
goto exit;
447 }
448
450
453 modarrayfreeU( attrsU );
454
455#endif
457}
Referenced by ldap_add_sA().
◆ ldap_addA()
Definition at line 48 of file add.c.
49{
51#ifdef HAVE_LDAP
54
56
58
60
61 if (dn) {
64 }
65 if (attrs) {
66 attrsW = modarrayAtoW( attrs );
67 if (!attrsW)
goto exit;
68 }
69
71
74 modarrayfreeW( attrsW );
75
76#endif
78}
ULONG CDECL ldap_addW(WLDAP32_LDAP *ld, PWCHAR dn, LDAPModW *attrs[])
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_addW()
Definition at line 100 of file add.c.
101{
103#ifdef HAVE_LDAP
107
109
111
113
114 if (dn) {
117 }
118 if (attrs) {
119 attrsU = modarrayWtoU( attrs );
120 if (!attrsU)
goto exit;
121 }
122
124
127 else
129
132 modarrayfreeU( attrsU );
133
134#endif
136}
Referenced by ldap_addA().
◆ WINE_DEFAULT_DEBUG_CHANNEL()
| WINE_DEFAULT_DEBUG_CHANNEL |
( |
wldap32 |
| ) |
|