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
33cb7920
Commit
33cb7920
authored
Jul 13, 2016
by
Hans Leidekker
Committed by
Alexandre Julliard
Jul 14, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
secur32: Forward Sspi functions to sspicli.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1ec8dd75
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
110 deletions
+5
-110
secur32.c
dlls/secur32/secur32.c
+0
-105
secur32.spec
dlls/secur32/secur32.spec
+5
-5
No files found.
dlls/secur32/secur32.c
View file @
33cb7920
...
@@ -1170,111 +1170,6 @@ BOOLEAN WINAPI TranslateNameW(
...
@@ -1170,111 +1170,6 @@ BOOLEAN WINAPI TranslateNameW(
}
}
/***********************************************************************
/***********************************************************************
* SspiEncodeAuthIdentityAsStrings (SECUR32.0)
*/
SECURITY_STATUS
SEC_ENTRY
SspiEncodeAuthIdentityAsStrings
(
PSEC_WINNT_AUTH_IDENTITY_OPAQUE
opaque_id
,
PCWSTR
*
username
,
PCWSTR
*
domainname
,
PCWSTR
*
creds
)
{
SEC_WINNT_AUTH_IDENTITY_W
*
id
=
(
SEC_WINNT_AUTH_IDENTITY_W
*
)
opaque_id
;
FIXME
(
"%p %p %p %p
\n
"
,
opaque_id
,
username
,
domainname
,
creds
);
*
username
=
SECUR32_strdupW
(
id
->
User
);
*
domainname
=
SECUR32_strdupW
(
id
->
Domain
);
*
creds
=
SECUR32_strdupW
(
id
->
Password
);
return
SEC_E_OK
;
}
/***********************************************************************
* SspiEncodeStringsAsAuthIdentity (SECUR32.0)
*/
SECURITY_STATUS
SEC_ENTRY
SspiEncodeStringsAsAuthIdentity
(
PCWSTR
username
,
PCWSTR
domainname
,
PCWSTR
creds
,
PSEC_WINNT_AUTH_IDENTITY_OPAQUE
*
opaque_id
)
{
SEC_WINNT_AUTH_IDENTITY_W
*
id
;
DWORD
len_username
=
0
,
len_domainname
=
0
,
len_password
=
0
,
size
;
WCHAR
*
ptr
;
FIXME
(
"%s %s %s %p
\n
"
,
debugstr_w
(
username
),
debugstr_w
(
domainname
),
debugstr_w
(
creds
),
opaque_id
);
if
(
!
username
&&
!
domainname
&&
!
creds
)
return
SEC_E_INVALID_TOKEN
;
if
(
username
)
len_username
=
strlenW
(
username
);
if
(
domainname
)
len_domainname
=
strlenW
(
domainname
);
if
(
creds
)
len_password
=
strlenW
(
creds
);
size
=
sizeof
(
*
id
);
if
(
username
)
size
+=
(
len_username
+
1
)
*
sizeof
(
WCHAR
);
if
(
domainname
)
size
+=
(
len_domainname
+
1
)
*
sizeof
(
WCHAR
);
if
(
creds
)
size
+=
(
len_password
+
1
)
*
sizeof
(
WCHAR
);
if
(
!
(
id
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
size
)))
return
ERROR_OUTOFMEMORY
;
ptr
=
(
WCHAR
*
)(
id
+
1
);
if
(
username
)
{
memcpy
(
ptr
,
username
,
(
len_username
+
1
)
*
sizeof
(
WCHAR
)
);
id
->
User
=
ptr
;
id
->
UserLength
=
len_username
;
ptr
+=
len_username
+
1
;
}
if
(
domainname
)
{
memcpy
(
ptr
,
domainname
,
(
len_domainname
+
1
)
*
sizeof
(
WCHAR
)
);
id
->
Domain
=
ptr
;
id
->
DomainLength
=
len_domainname
;
ptr
+=
len_domainname
+
1
;
}
if
(
creds
)
{
memcpy
(
ptr
,
creds
,
(
len_password
+
1
)
*
sizeof
(
WCHAR
)
);
id
->
Password
=
ptr
;
id
->
PasswordLength
=
len_password
;
}
*
opaque_id
=
id
;
return
SEC_E_OK
;
}
/***********************************************************************
* SspiFreeAuthIdentity (SECUR32.0)
*/
void
SEC_ENTRY
SspiFreeAuthIdentity
(
PSEC_WINNT_AUTH_IDENTITY_OPAQUE
opaque_id
)
{
TRACE
(
"%p
\n
"
,
opaque_id
);
HeapFree
(
GetProcessHeap
(),
0
,
opaque_id
);
}
/***********************************************************************
* SspiLocalFree (SECUR32.0)
*/
void
SEC_ENTRY
SspiLocalFree
(
void
*
ptr
)
{
TRACE
(
"%p
\n
"
,
ptr
);
HeapFree
(
GetProcessHeap
(),
0
,
ptr
);
}
/***********************************************************************
* SspiZeroAuthIdentity (SECUR32.0)
*/
void
SEC_ENTRY
SspiZeroAuthIdentity
(
PSEC_WINNT_AUTH_IDENTITY_OPAQUE
opaque_id
)
{
SEC_WINNT_AUTH_IDENTITY_W
*
id
=
(
SEC_WINNT_AUTH_IDENTITY_W
*
)
opaque_id
;
TRACE
(
"%p
\n
"
,
opaque_id
);
if
(
!
id
)
return
;
if
(
id
->
User
)
memset
(
id
->
User
,
0
,
id
->
UserLength
*
sizeof
(
WCHAR
)
);
if
(
id
->
Domain
)
memset
(
id
->
Domain
,
0
,
id
->
DomainLength
*
sizeof
(
WCHAR
)
);
if
(
id
->
Password
)
memset
(
id
->
Password
,
0
,
id
->
PasswordLength
*
sizeof
(
WCHAR
)
);
memset
(
id
,
0
,
sizeof
(
*
id
)
);
}
/***********************************************************************
* DllMain (SECUR32.0)
* DllMain (SECUR32.0)
*/
*/
BOOL
WINAPI
DllMain
(
HINSTANCE
hinstDLL
,
DWORD
reason
,
LPVOID
reserved
)
BOOL
WINAPI
DllMain
(
HINSTANCE
hinstDLL
,
DWORD
reason
,
LPVOID
reserved
)
...
...
dlls/secur32/secur32.spec
View file @
33cb7920
...
@@ -69,11 +69,11 @@
...
@@ -69,11 +69,11 @@
@ stub SecpTranslateNameEx
@ stub SecpTranslateNameEx
@ stdcall SetContextAttributesA(ptr long ptr long)
@ stdcall SetContextAttributesA(ptr long ptr long)
@ stdcall SetContextAttributesW(ptr long ptr long)
@ stdcall SetContextAttributesW(ptr long ptr long)
@ stdcall SspiEncodeAuthIdentityAsStrings(ptr ptr ptr ptr)
@ stdcall SspiEncodeAuthIdentityAsStrings(ptr ptr ptr ptr)
sspicli.SspiEncodeAuthIdentityAsStrings
@ stdcall SspiEncodeStringsAsAuthIdentity(wstr wstr wstr ptr)
@ stdcall SspiEncodeStringsAsAuthIdentity(wstr wstr wstr ptr)
sspicli.SspiEncodeStringsAsAuthIdentity
@ stdcall SspiFreeAuthIdentity(ptr)
@ stdcall SspiFreeAuthIdentity(ptr)
sspicli.SspiFreeAuthIdentity
@ stdcall SspiLocalFree(ptr)
@ stdcall SspiLocalFree(ptr)
sspicli.SspiLocalFree
@ stdcall SspiZeroAuthIdentity(ptr)
@ stdcall SspiZeroAuthIdentity(ptr)
sspicli.SspiZeroAuthIdentity
@ stdcall TranslateNameA(str long long ptr ptr)
@ stdcall TranslateNameA(str long long ptr ptr)
@ stdcall TranslateNameW(wstr long long ptr ptr)
@ stdcall TranslateNameW(wstr long long ptr ptr)
@ stdcall UnsealMessage(ptr ptr long ptr) DecryptMessage
@ stdcall UnsealMessage(ptr ptr long ptr) DecryptMessage
...
...
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