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
eae8f4ed
Commit
eae8f4ed
authored
Oct 18, 2013
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 18, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Use empty_store for new CTL contexts.
parent
c01a7084
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
ctl.c
dlls/crypt32/ctl.c
+1
-1
store.c
dlls/crypt32/tests/store.c
+7
-0
No files found.
dlls/crypt32/ctl.c
View file @
eae8f4ed
...
...
@@ -453,7 +453,7 @@ PCCTL_CONTEXT WINAPI CertCreateCTLContext(DWORD dwMsgAndCertEncodingType,
ctl
->
pbCtlEncoded
=
data
;
ctl
->
cbCtlEncoded
=
cbCtlEncoded
;
ctl
->
pCtlInfo
=
ctlInfo
;
ctl
->
hCertStore
=
NULL
;
ctl
->
hCertStore
=
&
empty_store
;
ctl
->
hCryptMsg
=
msg
;
ctl
->
pbCtlContext
=
content
;
ctl
->
cbCtlContext
=
contentSize
;
...
...
dlls/crypt32/tests/store.c
View file @
eae8f4ed
...
...
@@ -2531,6 +2531,7 @@ static void testEmptyStore(void)
{
const
CERT_CONTEXT
*
cert
,
*
cert2
,
*
cert3
;
const
CRL_CONTEXT
*
crl
;
const
CTL_CONTEXT
*
ctl
;
HCERTSTORE
store
;
BOOL
res
;
...
...
@@ -2594,6 +2595,12 @@ static void testEmptyStore(void)
CertFreeCRLContext
(
crl
);
ctl
=
CertCreateCTLContext
(
X509_ASN_ENCODING
,
signedCTLWithCTLInnerContent
,
sizeof
(
signedCTLWithCTLInnerContent
));
ok
(
ctl
!=
NULL
,
"CertCreateCTLContext failed
\n
"
);
ok
(
ctl
->
hCertStore
==
cert
->
hCertStore
,
"unexpected hCertStore
\n
"
);
CertFreeCTLContext
(
ctl
);
CertFreeCertificateContext
(
cert
);
}
...
...
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