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
1ca4fc09
Commit
1ca4fc09
authored
Jul 13, 2016
by
Hans Leidekker
Committed by
Alexandre Julliard
Jul 14, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
credui: Use the input identity passed to SspiPromptForCredentialsW.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
09686ff5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
7 deletions
+15
-7
credui_main.c
dlls/credui/credui_main.c
+15
-7
No files found.
dlls/credui/credui_main.c
View file @
1ca4fc09
...
...
@@ -871,6 +871,7 @@ ULONG SEC_ENTRY SspiPromptForCredentialsW( PCWSTR target, void *info,
DWORD
len_password
=
sizeof
(
password
)
/
sizeof
(
password
[
0
]);
DWORD
ret
,
flags
;
CREDUI_INFOW
*
cred_info
=
info
;
SEC_WINNT_AUTH_IDENTITY_W
*
id
=
input_id
;
FIXME
(
"(%s, %p, %u, %s, %p, %p, %p, %x) stub
\n
"
,
debugstr_w
(
target
),
info
,
error
,
debugstr_w
(
package
),
input_id
,
output_id
,
save
,
sspi_flags
);
...
...
@@ -882,11 +883,6 @@ ULONG SEC_ENTRY SspiPromptForCredentialsW( PCWSTR target, void *info,
FIXME
(
"package %s not supported
\n
"
,
debugstr_w
(
package
)
);
return
ERROR_NO_SUCH_PACKAGE
;
}
if
(
input_id
)
{
FIXME
(
"input identity not supported
\n
"
);
return
ERROR_CALL_NOT_IMPLEMENTED
;
}
flags
=
CREDUI_FLAGS_ALWAYS_SHOW_UI
|
CREDUI_FLAGS_GENERIC_CREDENTIALS
;
...
...
@@ -896,12 +892,24 @@ ULONG SEC_ENTRY SspiPromptForCredentialsW( PCWSTR target, void *info,
if
(
!
(
sspi_flags
&
SSPIPFC_NO_CHECKBOX
))
flags
|=
CREDUI_FLAGS_SHOW_SAVE_CHECK_BOX
;
find_existing_credential
(
target
,
username
,
len_username
,
password
,
len_password
);
if
(
!
id
)
find_existing_credential
(
target
,
username
,
len_username
,
password
,
len_password
);
else
{
if
(
id
->
User
&&
id
->
UserLength
>
0
&&
id
->
UserLength
<=
CREDUI_MAX_USERNAME_LENGTH
)
{
memcpy
(
username
,
id
->
User
,
id
->
UserLength
*
sizeof
(
WCHAR
)
);
username
[
id
->
UserLength
]
=
0
;
}
if
(
id
->
Password
&&
id
->
PasswordLength
>
0
&&
id
->
PasswordLength
<=
CREDUI_MAX_PASSWORD_LENGTH
)
{
memcpy
(
password
,
id
->
Password
,
id
->
PasswordLength
*
sizeof
(
WCHAR
)
);
password
[
id
->
PasswordLength
]
=
0
;
}
}
if
(
!
(
ret
=
CredUIPromptForCredentialsW
(
cred_info
,
target
,
NULL
,
error
,
username
,
len_username
,
password
,
len_password
,
save
,
flags
)))
{
SEC_WINNT_AUTH_IDENTITY_W
*
id
;
DWORD
size
=
sizeof
(
*
id
);
WCHAR
*
ptr
;
...
...
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