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
8be6ee36
Commit
8be6ee36
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_create_sort_control*.
parent
300c10a3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
61 additions
and
3 deletions
+61
-3
control.c
dlls/wldap32/control.c
+56
-0
winldap_private.h
dlls/wldap32/winldap_private.h
+2
-0
wldap32.spec
dlls/wldap32/wldap32.spec
+3
-3
No files found.
dlls/wldap32/control.c
View file @
8be6ee36
...
...
@@ -89,6 +89,62 @@ ULONG ldap_controls_freeW( LDAPControlW **controls )
return
ret
;
}
ULONG
ldap_create_sort_controlA
(
WLDAP32_LDAP
*
ld
,
PLDAPSortKeyA
*
sortkey
,
UCHAR
critical
,
PLDAPControlA
*
control
)
{
ULONG
ret
=
LDAP_NOT_SUPPORTED
;
#ifdef HAVE_LDAP
LDAPSortKeyW
**
sortkeyW
=
NULL
;
LDAPControlW
*
controlW
=
NULL
;
TRACE
(
"(%p, %p, 0x%02x, %p)
\n
"
,
ld
,
sortkey
,
critical
,
control
);
if
(
!
ld
||
!
sortkey
||
!
control
)
return
WLDAP32_LDAP_PARAM_ERROR
;
sortkeyW
=
sortkeyarrayAtoW
(
sortkey
);
if
(
!
sortkeyW
)
return
WLDAP32_LDAP_NO_MEMORY
;
ret
=
ldap_create_sort_controlW
(
ld
,
sortkeyW
,
critical
,
&
controlW
);
*
control
=
controlWtoA
(
controlW
);
if
(
!*
control
)
ret
=
WLDAP32_LDAP_NO_MEMORY
;
ldap_control_freeW
(
controlW
);
sortkeyarrayfreeW
(
sortkeyW
);
#endif
return
ret
;
}
ULONG
ldap_create_sort_controlW
(
WLDAP32_LDAP
*
ld
,
PLDAPSortKeyW
*
sortkey
,
UCHAR
critical
,
PLDAPControlW
*
control
)
{
ULONG
ret
=
LDAP_NOT_SUPPORTED
;
#ifdef HAVE_LDAP
LDAPSortKey
**
sortkeyU
=
NULL
;
LDAPControl
*
controlU
=
NULL
;
TRACE
(
"(%p, %p, 0x%02x, %p)
\n
"
,
ld
,
sortkey
,
critical
,
control
);
if
(
!
ld
||
!
sortkey
||
!
control
)
return
WLDAP32_LDAP_PARAM_ERROR
;
sortkeyU
=
sortkeyarrayWtoU
(
sortkey
);
if
(
!
sortkeyU
)
return
WLDAP32_LDAP_NO_MEMORY
;
ret
=
ldap_create_sort_control
(
ld
,
sortkeyU
,
critical
,
&
controlU
);
*
control
=
controlUtoW
(
controlU
);
if
(
!*
control
)
ret
=
WLDAP32_LDAP_NO_MEMORY
;
ldap_control_free
(
controlU
);
sortkeyarrayfreeU
(
sortkeyU
);
#endif
return
ret
;
}
ULONG
ldap_free_controlsA
(
LDAPControlA
**
controls
)
{
return
ldap_controls_freeA
(
controls
);
...
...
dlls/wldap32/winldap_private.h
View file @
8be6ee36
...
...
@@ -275,6 +275,8 @@ ULONG WLDAP32_ldap_count_references(WLDAP32_LDAP*,WLDAP32_LDAPMessage*);
ULONG
ldap_count_valuesA
(
PCHAR
*
);
ULONG
ldap_count_valuesW
(
PWCHAR
*
);
ULONG
WLDAP32_ldap_count_values_len
(
PBERVAL
*
);
ULONG
ldap_create_sort_controlA
(
WLDAP32_PLDAP
,
PLDAPSortKeyA
*
,
UCHAR
,
PLDAPControlA
*
);
ULONG
ldap_create_sort_controlW
(
WLDAP32_PLDAP
,
PLDAPSortKeyW
*
,
UCHAR
,
PLDAPControlW
*
);
ULONG
ldap_deleteA
(
WLDAP32_LDAP
*
,
PCHAR
);
ULONG
ldap_deleteW
(
WLDAP32_LDAP
*
,
PWCHAR
);
ULONG
ldap_delete_extA
(
WLDAP32_LDAP
*
,
PCHAR
,
PLDAPControlA
*
,
PLDAPControlA
*
,
ULONG
*
);
...
...
dlls/wldap32/wldap32.spec
View file @
8be6ee36
...
...
@@ -70,9 +70,9 @@
@ stub ldap_create_page_control
@ stub ldap_create_page_controlA
@ stub ldap_create_page_controlW
@
stub ldap_create_sort_control
@
stub ldap_create_sort_controlA
@
stub ldap_create_sort_controlW
@
cdecl ldap_create_sort_control(ptr ptr long ptr) ldap_create_sort_controlA
@
cdecl ldap_create_sort_controlA(ptr ptr long ptr)
@
cdecl ldap_create_sort_controlW(ptr ptr long ptr)
@ stub ldap_create_vlv_controlA
@ stub ldap_create_vlv_controlW
@ cdecl ldap_delete(ptr str) ldap_deleteA
...
...
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