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
e0a44048
Commit
e0a44048
authored
Oct 15, 2009
by
Juan Lang
Committed by
Alexandre Julliard
Oct 19, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Use helper function to search for certs.
parent
1437d7cc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
8 deletions
+18
-8
cert.c
dlls/crypt32/cert.c
+18
-8
No files found.
dlls/crypt32/cert.c
View file @
e0a44048
...
...
@@ -1405,6 +1405,22 @@ static BOOL compare_cert_by_signature_hash(PCCERT_CONTEXT pCertContext, DWORD dw
return
ret
;
}
static
inline
PCCERT_CONTEXT
cert_compare_certs_in_store
(
HCERTSTORE
store
,
PCCERT_CONTEXT
prev
,
CertCompareFunc
compare
,
DWORD
dwType
,
DWORD
dwFlags
,
const
void
*
pvPara
)
{
BOOL
matches
=
FALSE
;
PCCERT_CONTEXT
ret
;
ret
=
prev
;
do
{
ret
=
CertEnumCertificatesInStore
(
store
,
ret
);
if
(
ret
)
matches
=
compare
(
ret
,
dwType
,
dwFlags
,
pvPara
);
}
while
(
ret
!=
NULL
&&
!
matches
);
return
ret
;
}
PCCERT_CONTEXT
WINAPI
CertFindCertificateInStore
(
HCERTSTORE
hCertStore
,
DWORD
dwCertEncodingType
,
DWORD
dwFlags
,
DWORD
dwType
,
const
void
*
pvPara
,
PCCERT_CONTEXT
pPrevCertContext
)
...
...
@@ -1454,14 +1470,8 @@ PCCERT_CONTEXT WINAPI CertFindCertificateInStore(HCERTSTORE hCertStore,
if
(
compare
)
{
BOOL
matches
=
FALSE
;
ret
=
pPrevCertContext
;
do
{
ret
=
CertEnumCertificatesInStore
(
hCertStore
,
ret
);
if
(
ret
)
matches
=
compare
(
ret
,
dwType
,
dwFlags
,
pvPara
);
}
while
(
ret
!=
NULL
&&
!
matches
);
ret
=
cert_compare_certs_in_store
(
hCertStore
,
pPrevCertContext
,
compare
,
dwType
,
dwFlags
,
pvPara
);
if
(
!
ret
)
SetLastError
(
CRYPT_E_NOT_FOUND
);
}
...
...
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