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
ce8aed90
Commit
ce8aed90
authored
May 28, 2022
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 30, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kerberos: Separate ticket query function from call handler.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
parent
6c1cea2a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
unixlib.c
dlls/kerberos/unixlib.c
+14
-5
No files found.
dlls/kerberos/unixlib.c
View file @
ce8aed90
...
...
@@ -303,16 +303,13 @@ static NTSTATUS copy_tickets_to_client( struct ticket_list *list, KERB_QUERY_TKT
return
STATUS_SUCCESS
;
}
static
NTSTATUS
query_ticket_cache
(
void
*
args
)
static
NTSTATUS
kerberos_fill_ticket_list
(
struct
ticket_list
*
list
)
{
struct
query_ticket_cache_params
*
params
=
args
;
NTSTATUS
status
;
krb5_error_code
err
;
krb5_context
ctx
;
krb5_cccol_cursor
cursor
=
NULL
;
krb5_ccache
cache
;
ULONG
i
;
struct
ticket_list
list
=
{
0
};
if
((
err
=
p_krb5_init_context
(
&
ctx
)))
return
krb5_error_to_status
(
err
);
if
((
err
=
p_krb5_cccol_cursor_new
(
ctx
,
&
cursor
)))
...
...
@@ -330,7 +327,7 @@ static NTSTATUS query_ticket_cache( void *args )
}
if
(
!
cache
)
break
;
status
=
copy_tickets_from_cache
(
ctx
,
cache
,
&
list
);
status
=
copy_tickets_from_cache
(
ctx
,
cache
,
list
);
p_krb5_cc_close
(
ctx
,
cache
);
if
(
status
!=
STATUS_SUCCESS
)
goto
done
;
}
...
...
@@ -339,6 +336,18 @@ done:
if
(
cursor
)
p_krb5_cccol_cursor_free
(
ctx
,
&
cursor
);
if
(
ctx
)
p_krb5_free_context
(
ctx
);
return
status
;
}
static
NTSTATUS
query_ticket_cache
(
void
*
args
)
{
struct
query_ticket_cache_params
*
params
=
args
;
struct
ticket_list
list
=
{
0
};
NTSTATUS
status
;
ULONG
i
;
status
=
kerberos_fill_ticket_list
(
&
list
);
if
(
status
==
STATUS_SUCCESS
)
status
=
copy_tickets_to_client
(
&
list
,
params
->
resp
,
params
->
out_size
);
for
(
i
=
0
;
i
<
list
.
count
;
i
++
)
...
...
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