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
fa6b64d6
Commit
fa6b64d6
authored
Nov 26, 2007
by
Juan Lang
Committed by
Alexandre Julliard
Nov 28, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Add CERT_STORE_ADD_NEWER support to CertAddCertificateContextToStore.
parent
ab55435e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
store.c
dlls/crypt32/store.c
+16
-0
No files found.
dlls/crypt32/store.c
View file @
fa6b64d6
...
...
@@ -837,6 +837,22 @@ BOOL WINAPI CertAddCertificateContextToStore(HCERTSTORE hCertStore,
else
toAdd
=
CertDuplicateCertificateContext
(
pCertContext
);
break
;
case
CERT_STORE_ADD_NEWER
:
if
(
existing
)
{
if
(
CompareFileTime
(
&
existing
->
pCertInfo
->
NotBefore
,
&
pCertContext
->
pCertInfo
->
NotBefore
)
>=
0
)
{
TRACE
(
"existing certificate is newer, not adding
\n
"
);
SetLastError
(
CRYPT_E_EXISTS
);
ret
=
FALSE
;
}
else
toAdd
=
CertDuplicateCertificateContext
(
pCertContext
);
}
else
toAdd
=
CertDuplicateCertificateContext
(
pCertContext
);
break
;
default:
FIXME
(
"Unimplemented add disposition %d
\n
"
,
dwAddDisposition
);
ret
=
FALSE
;
...
...
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