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
acc9d81f
Commit
acc9d81f
authored
Oct 20, 2009
by
Juan Lang
Committed by
Alexandre Julliard
Oct 21, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Fix duplicating a NULL CRL context.
parent
47ec8ab0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
crl.c
dlls/crypt32/crl.c
+1
-0
crl.c
dlls/crypt32/tests/crl.c
+16
-0
No files found.
dlls/crypt32/crl.c
View file @
acc9d81f
...
...
@@ -228,6 +228,7 @@ PCCRL_CONTEXT WINAPI CertGetCRLFromStore(HCERTSTORE hCertStore,
PCCRL_CONTEXT
WINAPI
CertDuplicateCRLContext
(
PCCRL_CONTEXT
pCrlContext
)
{
TRACE
(
"(%p)
\n
"
,
pCrlContext
);
if
(
pCrlContext
)
Context_AddRef
((
void
*
)
pCrlContext
,
sizeof
(
CRL_CONTEXT
));
return
pCrlContext
;
}
...
...
dlls/crypt32/tests/crl.c
View file @
acc9d81f
...
...
@@ -118,6 +118,21 @@ static void testCreateCRL(void)
CertFreeCRLContext
(
context
);
}
static
void
testDupCRL
(
void
)
{
PCCRL_CONTEXT
context
,
dupContext
;
context
=
CertDuplicateCRLContext
(
NULL
);
ok
(
context
==
NULL
,
"expected NULL
\n
"
);
context
=
CertCreateCRLContext
(
X509_ASN_ENCODING
,
signedCRL
,
sizeof
(
signedCRL
));
dupContext
=
CertDuplicateCRLContext
(
context
);
ok
(
dupContext
!=
NULL
,
"expected a context
\n
"
);
ok
(
dupContext
==
context
,
"expected identical context addresses
\n
"
);
CertFreeCRLContext
(
dupContext
);
CertFreeCRLContext
(
context
);
}
static
void
testAddCRL
(
void
)
{
HCERTSTORE
store
=
CertOpenStore
(
CERT_STORE_PROV_MEMORY
,
0
,
0
,
...
...
@@ -722,6 +737,7 @@ START_TEST(crl)
init_function_pointers
();
testCreateCRL
();
testDupCRL
();
testAddCRL
();
testFindCRL
();
testGetCRLFromStore
();
...
...
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