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
76fc5c8b
Commit
76fc5c8b
authored
May 14, 2010
by
Juan Lang
Committed by
Alexandre Julliard
May 17, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Validate add disposition before checking source certificate's properties.
parent
0dfb0299
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
5 deletions
+16
-5
store.c
dlls/crypt32/store.c
+16
-5
No files found.
dlls/crypt32/store.c
View file @
76fc5c8b
...
...
@@ -855,7 +855,16 @@ BOOL WINAPI CertAddCertificateContextToStore(HCERTSTORE hCertStore,
TRACE
(
"(%p, %p, %08x, %p)
\n
"
,
hCertStore
,
pCertContext
,
dwAddDisposition
,
ppStoreContext
);
if
(
dwAddDisposition
!=
CERT_STORE_ADD_ALWAYS
)
switch
(
dwAddDisposition
)
{
case
CERT_STORE_ADD_ALWAYS
:
break
;
case
CERT_STORE_ADD_NEW
:
case
CERT_STORE_ADD_REPLACE_EXISTING
:
case
CERT_STORE_ADD_REPLACE_EXISTING_INHERIT_PROPERTIES
:
case
CERT_STORE_ADD_USE_EXISTING
:
case
CERT_STORE_ADD_NEWER
:
case
CERT_STORE_ADD_NEWER_INHERIT_PROPERTIES
:
{
BYTE
hashToAdd
[
20
];
DWORD
size
=
sizeof
(
hashToAdd
);
...
...
@@ -870,6 +879,12 @@ BOOL WINAPI CertAddCertificateContextToStore(HCERTSTORE hCertStore,
pCertContext
->
dwCertEncodingType
,
0
,
CERT_FIND_SHA1_HASH
,
&
blob
,
NULL
);
}
break
;
}
default:
FIXME
(
"Unimplemented add disposition %d
\n
"
,
dwAddDisposition
);
SetLastError
(
E_INVALIDARG
);
ret
=
FALSE
;
}
switch
(
dwAddDisposition
)
...
...
@@ -940,10 +955,6 @@ BOOL WINAPI CertAddCertificateContextToStore(HCERTSTORE hCertStore,
else
toAdd
=
CertDuplicateCertificateContext
(
pCertContext
);
break
;
default:
FIXME
(
"Unimplemented add disposition %d
\n
"
,
dwAddDisposition
);
SetLastError
(
E_INVALIDARG
);
ret
=
FALSE
;
}
if
(
toAdd
)
...
...
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