Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
b7fa4a77
Commit
b7fa4a77
authored
Oct 28, 2008
by
Juan Lang
Committed by
Alexandre Julliard
Oct 29, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cryptui: Fix destination store for self-signed certs.
parent
472984f5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
14 deletions
+1
-14
main.c
dlls/cryptui/main.c
+1
-13
cryptui.c
dlls/cryptui/tests/cryptui.c
+0
-1
No files found.
dlls/cryptui/main.c
View file @
b7fa4a77
...
...
@@ -182,27 +182,15 @@ static BOOL is_ca_cert(PCCERT_CONTEXT cert, BOOL defaultIfNotSpecified)
return
isCA
;
}
static
inline
BOOL
is_cert_self_signed
(
PCCERT_CONTEXT
cert
)
{
return
CertCompareCertificateName
(
cert
->
dwCertEncodingType
,
&
cert
->
pCertInfo
->
Subject
,
&
cert
->
pCertInfo
->
Issuer
);
}
static
HCERTSTORE
choose_store_for_cert
(
PCCERT_CONTEXT
cert
)
{
static
const
WCHAR
Root
[]
=
{
'R'
,
'o'
,
'o'
,
't'
,
0
};
static
const
WCHAR
AddressBook
[]
=
{
'A'
,
'd'
,
'd'
,
'r'
,
'e'
,
's'
,
's'
,
'B'
,
'o'
,
'o'
,
'k'
,
0
};
static
const
WCHAR
CA
[]
=
{
'C'
,
'A'
,
0
};
LPCWSTR
storeName
;
if
(
is_ca_cert
(
cert
,
TRUE
))
{
if
(
is_cert_self_signed
(
cert
))
storeName
=
Root
;
else
storeName
=
CA
;
}
storeName
=
CA
;
else
storeName
=
AddressBook
;
return
CertOpenStore
(
CERT_STORE_PROV_SYSTEM_W
,
0
,
0
,
...
...
dlls/cryptui/tests/cryptui.c
View file @
b7fa4a77
...
...
@@ -373,7 +373,6 @@ static void test_crypt_ui_wiz_import(void)
info
.
u
.
pCertContext
=
CertCreateCertificateContext
(
X509_ASN_ENCODING
,
v1CertWithValidPubKey
,
sizeof
(
v1CertWithValidPubKey
));
ret
=
pCryptUIWizImport
(
CRYPTUI_WIZ_NO_UI
,
0
,
NULL
,
&
info
,
NULL
);
todo_wine
ok
(
ret
,
"CryptUIWizImport failed: %08x
\n
"
,
GetLastError
());
if
(
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