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
420cb678
Commit
420cb678
authored
Oct 06, 2008
by
Henri Verbeet
Committed by
Alexandre Julliard
Oct 07, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
secur32: Forward schannel InitializeSecurityContextA to InitializeSecurityContextW.
parent
937488c2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
17 deletions
+24
-17
schannel.c
dlls/secur32/schannel.c
+24
-17
No files found.
dlls/secur32/schannel.c
View file @
420cb678
...
...
@@ -28,6 +28,7 @@
#include "windef.h"
#include "winbase.h"
#include "winnls.h"
#include "sspi.h"
#include "schannel.h"
#include "secur32_priv.h"
...
...
@@ -406,10 +407,10 @@ static SECURITY_STATUS SEC_ENTRY schan_FreeCredentialsHandle(
}
/***********************************************************************
* InitializeSecurityContext
A
* InitializeSecurityContext
W
*/
static
SECURITY_STATUS
SEC_ENTRY
schan_InitializeSecurityContext
A
(
PCredHandle
phCredential
,
PCtxtHandle
phContext
,
SEC_CHAR
*
pszTargetName
,
static
SECURITY_STATUS
SEC_ENTRY
schan_InitializeSecurityContext
W
(
PCredHandle
phCredential
,
PCtxtHandle
phContext
,
SEC_
W
CHAR
*
pszTargetName
,
ULONG
fContextReq
,
ULONG
Reserved1
,
ULONG
TargetDataRep
,
PSecBufferDesc
pInput
,
ULONG
Reserved2
,
PCtxtHandle
phNewContext
,
PSecBufferDesc
pOutput
,
ULONG
*
pfContextAttr
,
PTimeStamp
ptsExpiry
)
...
...
@@ -417,9 +418,9 @@ static SECURITY_STATUS SEC_ENTRY schan_InitializeSecurityContextA(
SECURITY_STATUS
ret
;
TRACE
(
"%p %p %s %d %d %d %p %d %p %p %p %p
\n
"
,
phCredential
,
phContext
,
debugstr_
a
(
pszTargetName
),
fContextReq
,
Reserved1
,
TargetDataRep
,
pInput
,
debugstr_
w
(
pszTargetName
),
fContextReq
,
Reserved1
,
TargetDataRep
,
pInput
,
Reserved1
,
phNewContext
,
pOutput
,
pfContextAttr
,
ptsExpiry
);
if
(
phCredential
)
if
(
phCredential
)
{
FIXME
(
"stub
\n
"
);
ret
=
SEC_E_UNSUPPORTED_FUNCTION
;
...
...
@@ -432,28 +433,34 @@ static SECURITY_STATUS SEC_ENTRY schan_InitializeSecurityContextA(
}
/***********************************************************************
* InitializeSecurityContext
W
* InitializeSecurityContext
A
*/
static
SECURITY_STATUS
SEC_ENTRY
schan_InitializeSecurityContext
W
(
PCredHandle
phCredential
,
PCtxtHandle
phContext
,
SEC_
W
CHAR
*
pszTargetName
,
static
SECURITY_STATUS
SEC_ENTRY
schan_InitializeSecurityContext
A
(
PCredHandle
phCredential
,
PCtxtHandle
phContext
,
SEC_CHAR
*
pszTargetName
,
ULONG
fContextReq
,
ULONG
Reserved1
,
ULONG
TargetDataRep
,
PSecBufferDesc
pInput
,
ULONG
Reserved2
,
PCtxtHandle
phNewContext
,
PSecBufferDesc
pInput
,
ULONG
Reserved2
,
PCtxtHandle
phNewContext
,
PSecBufferDesc
pOutput
,
ULONG
*
pfContextAttr
,
PTimeStamp
ptsExpiry
)
{
SECURITY_STATUS
ret
;
SEC_WCHAR
*
target_name
=
NULL
;
TRACE
(
"%p %p %s %d %d %d %p %d %p %p %p %p
\n
"
,
phCredential
,
phContext
,
debugstr_
w
(
pszTargetName
),
fContextReq
,
Reserved1
,
TargetDataRep
,
pInput
,
debugstr_
a
(
pszTargetName
),
fContextReq
,
Reserved1
,
TargetDataRep
,
pInput
,
Reserved1
,
phNewContext
,
pOutput
,
pfContextAttr
,
ptsExpiry
);
if
(
phCredential
)
{
FIXME
(
"stub
\n
"
);
ret
=
SEC_E_UNSUPPORTED_FUNCTION
;
}
else
if
(
pszTargetName
)
{
ret
=
SEC_E_INVALID_HANDLE
;
INT
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
pszTargetName
,
-
1
,
NULL
,
0
);
target_name
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
*
target_name
));
MultiByteToWideChar
(
CP_ACP
,
0
,
pszTargetName
,
-
1
,
target_name
,
len
);
}
ret
=
schan_InitializeSecurityContextW
(
phCredential
,
phContext
,
target_name
,
fContextReq
,
Reserved1
,
TargetDataRep
,
pInput
,
Reserved2
,
phNewContext
,
pOutput
,
pfContextAttr
,
ptsExpiry
);
HeapFree
(
GetProcessHeap
(),
0
,
target_name
);
return
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