Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
907be53b
Commit
907be53b
authored
Sep 08, 2005
by
Hans Leidekker
Committed by
Alexandre Julliard
Sep 08, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement ldap_control_free*, ldap_controls_free* and
ldap_free_controls*.
parent
1cf56599
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
116 additions
and
9 deletions
+116
-9
Makefile.in
dlls/wldap32/Makefile.in
+1
-0
control.c
dlls/wldap32/control.c
+100
-0
winldap_private.h
dlls/wldap32/winldap_private.h
+6
-0
wldap32.spec
dlls/wldap32/wldap32.spec
+9
-9
No files found.
dlls/wldap32/Makefile.in
View file @
907be53b
...
@@ -12,6 +12,7 @@ C_SRCS = \
...
@@ -12,6 +12,7 @@ C_SRCS = \
ber.c
\
ber.c
\
bind.c
\
bind.c
\
compare.c
\
compare.c
\
control.c
\
delete.c
\
delete.c
\
dn.c
\
dn.c
\
error.c
\
error.c
\
...
...
dlls/wldap32/control.c
0 → 100644
View file @
907be53b
/*
* WLDAP32 - LDAP support for Wine
*
* Copyright 2005 Hans Leidekker
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "config.h"
#include "wine/port.h"
#include "wine/debug.h"
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "winnls.h"
#ifdef HAVE_LDAP_H
#include <ldap.h>
#else
#define LDAP_SUCCESS 0x00
#define LDAP_NOT_SUPPORTED 0x5c
#endif
#include "winldap_private.h"
#include "wldap32.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
wldap32
);
ULONG
ldap_control_freeA
(
LDAPControlA
*
control
)
{
ULONG
ret
=
LDAP_SUCCESS
;
#ifdef HAVE_LDAP
TRACE
(
"(%p)
\n
"
,
control
);
controlfreeA
(
control
);
#endif
return
ret
;
}
ULONG
ldap_control_freeW
(
LDAPControlW
*
control
)
{
ULONG
ret
=
LDAP_SUCCESS
;
#ifdef HAVE_LDAP
TRACE
(
"(%p)
\n
"
,
control
);
controlfreeW
(
control
);
#endif
return
ret
;
}
ULONG
ldap_controls_freeA
(
LDAPControlA
**
controls
)
{
ULONG
ret
=
LDAP_SUCCESS
;
#ifdef HAVE_LDAP
TRACE
(
"(%p)
\n
"
,
controls
);
controlarrayfreeA
(
controls
);
#endif
return
ret
;
}
ULONG
ldap_controls_freeW
(
LDAPControlW
**
controls
)
{
ULONG
ret
=
LDAP_SUCCESS
;
#ifdef HAVE_LDAP
TRACE
(
"(%p)
\n
"
,
controls
);
controlarrayfreeW
(
controls
);
#endif
return
ret
;
}
ULONG
ldap_free_controlsA
(
LDAPControlA
**
controls
)
{
return
ldap_controls_freeA
(
controls
);
}
ULONG
ldap_free_controlsW
(
LDAPControlW
**
controls
)
{
return
ldap_controls_freeW
(
controls
);
}
dlls/wldap32/winldap_private.h
View file @
907be53b
...
@@ -266,6 +266,10 @@ ULONG ldap_compare_sA(WLDAP32_LDAP*,PCHAR,PCHAR,PCHAR);
...
@@ -266,6 +266,10 @@ ULONG ldap_compare_sA(WLDAP32_LDAP*,PCHAR,PCHAR,PCHAR);
ULONG
ldap_compare_sW
(
WLDAP32_LDAP
*
,
PWCHAR
,
PWCHAR
,
PWCHAR
);
ULONG
ldap_compare_sW
(
WLDAP32_LDAP
*
,
PWCHAR
,
PWCHAR
,
PWCHAR
);
ULONG
ldap_connect
(
WLDAP32_LDAP
*
,
LDAP_TIMEVAL
*
);
ULONG
ldap_connect
(
WLDAP32_LDAP
*
,
LDAP_TIMEVAL
*
);
WLDAP32_LDAP
*
ldap_conn_from_msg
(
WLDAP32_LDAP
*
,
WLDAP32_LDAPMessage
*
);
WLDAP32_LDAP
*
ldap_conn_from_msg
(
WLDAP32_LDAP
*
,
WLDAP32_LDAPMessage
*
);
ULONG
ldap_control_freeA
(
LDAPControlA
*
);
ULONG
ldap_control_freeW
(
LDAPControlW
*
);
ULONG
ldap_controls_freeA
(
LDAPControlA
**
);
ULONG
ldap_controls_freeW
(
LDAPControlW
**
);
ULONG
WLDAP32_ldap_count_entries
(
WLDAP32_LDAP
*
,
WLDAP32_LDAPMessage
*
);
ULONG
WLDAP32_ldap_count_entries
(
WLDAP32_LDAP
*
,
WLDAP32_LDAPMessage
*
);
ULONG
WLDAP32_ldap_count_references
(
WLDAP32_LDAP
*
,
WLDAP32_LDAPMessage
*
);
ULONG
WLDAP32_ldap_count_references
(
WLDAP32_LDAP
*
,
WLDAP32_LDAPMessage
*
);
ULONG
ldap_count_valuesA
(
PCHAR
*
);
ULONG
ldap_count_valuesA
(
PCHAR
*
);
...
@@ -297,6 +301,8 @@ PCHAR ldap_first_attributeA(WLDAP32_LDAP*,WLDAP32_LDAPMessage*,WLDAP32_BerElemen
...
@@ -297,6 +301,8 @@ PCHAR ldap_first_attributeA(WLDAP32_LDAP*,WLDAP32_LDAPMessage*,WLDAP32_BerElemen
PWCHAR
ldap_first_attributeW
(
WLDAP32_LDAP
*
,
WLDAP32_LDAPMessage
*
,
WLDAP32_BerElement
**
);
PWCHAR
ldap_first_attributeW
(
WLDAP32_LDAP
*
,
WLDAP32_LDAPMessage
*
,
WLDAP32_BerElement
**
);
WLDAP32_LDAPMessage
*
WLDAP32_ldap_first_entry
(
WLDAP32_LDAP
*
,
WLDAP32_LDAPMessage
*
);
WLDAP32_LDAPMessage
*
WLDAP32_ldap_first_entry
(
WLDAP32_LDAP
*
,
WLDAP32_LDAPMessage
*
);
WLDAP32_LDAPMessage
*
WLDAP32_ldap_first_reference
(
WLDAP32_LDAP
*
,
WLDAP32_LDAPMessage
*
);
WLDAP32_LDAPMessage
*
WLDAP32_ldap_first_reference
(
WLDAP32_LDAP
*
,
WLDAP32_LDAPMessage
*
);
ULONG
ldap_free_controlsA
(
LDAPControlA
**
);
ULONG
ldap_free_controlsW
(
LDAPControlW
**
);
PCHAR
ldap_get_dnA
(
WLDAP32_LDAP
*
,
WLDAP32_LDAPMessage
*
);
PCHAR
ldap_get_dnA
(
WLDAP32_LDAP
*
,
WLDAP32_LDAPMessage
*
);
PWCHAR
ldap_get_dnW
(
WLDAP32_LDAP
*
,
WLDAP32_LDAPMessage
*
);
PWCHAR
ldap_get_dnW
(
WLDAP32_LDAP
*
,
WLDAP32_LDAPMessage
*
);
ULONG
ldap_get_optionA
(
WLDAP32_LDAP
*
,
int
,
void
*
);
ULONG
ldap_get_optionA
(
WLDAP32_LDAP
*
,
int
,
void
*
);
...
...
dlls/wldap32/wldap32.spec
View file @
907be53b
...
@@ -55,12 +55,12 @@
...
@@ -55,12 +55,12 @@
@ cdecl ldap_compare_sW(ptr wstr wstr wstr)
@ cdecl ldap_compare_sW(ptr wstr wstr wstr)
@ cdecl ldap_conn_from_msg(ptr ptr)
@ cdecl ldap_conn_from_msg(ptr ptr)
@ cdecl ldap_connect(ptr ptr)
@ cdecl ldap_connect(ptr ptr)
@
stub ldap_control_free
@
cdecl ldap_control_free(ptr) ldap_control_freeA
@
stub ldap_control_freeA
@
cdecl ldap_control_freeA(ptr)
@
stub ldap_control_freeW
@
cdecl ldap_control_freeW(ptr)
@
stub ldap_controls_free
@
cdecl ldap_controls_free(ptr) ldap_controls_freeA
@
stub ldap_controls_freeA
@
cdecl ldap_controls_freeA(ptr)
@
stub ldap_controls_freeW
@
cdecl ldap_controls_freeW(ptr)
@ cdecl ldap_count_entries(ptr ptr) WLDAP32_ldap_count_entries
@ cdecl ldap_count_entries(ptr ptr) WLDAP32_ldap_count_entries
@ cdecl ldap_count_references(ptr ptr) WLDAP32_ldap_count_references
@ cdecl ldap_count_references(ptr ptr) WLDAP32_ldap_count_references
@ cdecl ldap_count_values(ptr) ldap_count_valuesA
@ cdecl ldap_count_values(ptr) ldap_count_valuesA
...
@@ -111,9 +111,9 @@
...
@@ -111,9 +111,9 @@
@ cdecl ldap_first_attributeW(ptr ptr ptr)
@ cdecl ldap_first_attributeW(ptr ptr ptr)
@ cdecl ldap_first_entry(ptr ptr) WLDAP32_ldap_first_entry
@ cdecl ldap_first_entry(ptr ptr) WLDAP32_ldap_first_entry
@ cdecl ldap_first_reference(ptr ptr) WLDAP32_ldap_first_reference
@ cdecl ldap_first_reference(ptr ptr) WLDAP32_ldap_first_reference
@
stub ldap_free_controls
@
cdecl ldap_free_controls(ptr) ldap_free_controlsA
@
stub ldap_free_controlsA
@
cdecl ldap_free_controlsA(ptr)
@
stub ldap_free_controlsW
@
cdecl ldap_free_controlsW(ptr)
@ cdecl ldap_get_dn(ptr ptr) ldap_get_dnA
@ cdecl ldap_get_dn(ptr ptr) ldap_get_dnA
@ cdecl ldap_get_dnA(ptr ptr)
@ cdecl ldap_get_dnA(ptr ptr)
@ cdecl ldap_get_dnW(ptr ptr)
@ cdecl ldap_get_dnW(ptr ptr)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment