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
51a0b4eb
Commit
51a0b4eb
authored
Feb 02, 2018
by
Hans Leidekker
Committed by
Alexandre Julliard
Feb 02, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kerberos: Use the global memory allocation helpers.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e1bef53e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
17 deletions
+3
-17
krb5_ap.c
dlls/kerberos/krb5_ap.c
+3
-17
No files found.
dlls/kerberos/krb5_ap.c
View file @
51a0b4eb
...
...
@@ -43,6 +43,7 @@
#include "ntsecapi.h"
#include "ntsecpkg.h"
#include "winternl.h"
#include "wine/heap.h"
#include "wine/library.h"
#include "wine/debug.h"
...
...
@@ -106,21 +107,6 @@ MAKE_FUNCPTR(krb5_free_unparsed_name);
MAKE_FUNCPTR
(
krb5_free_cred_contents
);
#undef MAKE_FUNCPTR
static
inline
void
*
heap_alloc
(
SIZE_T
size
)
{
return
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
}
static
inline
void
*
heap_realloc
(
void
*
p
,
SIZE_T
size
)
{
return
HeapReAlloc
(
GetProcessHeap
(),
0
,
p
,
size
);
}
static
inline
void
heap_free
(
void
*
p
)
{
HeapFree
(
GetProcessHeap
(),
0
,
p
);
}
static
void
load_krb5
(
void
)
{
if
(
!
(
libkrb5_handle
=
wine_dlopen
(
SONAME_LIBKRB5
,
RTLD_NOW
,
NULL
,
0
)))
...
...
@@ -757,7 +743,7 @@ static SECURITY_STATUS name_sspi_to_gss( const UNICODE_STRING *name_str, gss_nam
gss_buffer_desc
buf
;
buf
.
length
=
WideCharToMultiByte
(
CP_UNIXCP
,
0
,
name_str
->
Buffer
,
name_str
->
Length
/
sizeof
(
WCHAR
),
NULL
,
0
,
NULL
,
NULL
)
+
1
;
if
(
!
(
buf
.
value
=
HeapAlloc
(
GetProcessHeap
(),
0
,
buf
.
length
)))
return
SEC_E_INSUFFICIENT_MEMORY
;
if
(
!
(
buf
.
value
=
heap_alloc
(
buf
.
length
)))
return
SEC_E_INSUFFICIENT_MEMORY
;
WideCharToMultiByte
(
CP_UNIXCP
,
0
,
name_str
->
Buffer
,
name_str
->
Length
/
sizeof
(
WCHAR
),
buf
.
value
,
buf
.
length
,
NULL
,
NULL
);
buf
.
length
--
;
...
...
@@ -765,7 +751,7 @@ static SECURITY_STATUS name_sspi_to_gss( const UNICODE_STRING *name_str, gss_nam
TRACE
(
"gss_import_name returned %08x minor status %08x
\n
"
,
ret
,
minor_status
);
if
(
GSS_ERROR
(
ret
))
trace_gss_status
(
ret
,
minor_status
);
HeapFree
(
GetProcessHeap
(),
0
,
buf
.
value
);
heap_free
(
buf
.
value
);
return
status_gss_to_sspi
(
ret
);
}
...
...
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