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
bf0406cf
Commit
bf0406cf
authored
Jan 27, 2009
by
Juan Lang
Committed by
Alexandre Julliard
Jan 28, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Implement CertFindCertificateInStore for CERT_FIND_PUBLIC_KEY.
parent
3ae5e99c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
cert.c
dlls/crypt32/cert.c
+14
-0
No files found.
dlls/crypt32/cert.c
View file @
bf0406cf
...
...
@@ -966,6 +966,17 @@ static BOOL compare_cert_by_name(PCCERT_CONTEXT pCertContext, DWORD dwType,
return
ret
;
}
static
BOOL
compare_cert_by_public_key
(
PCCERT_CONTEXT
pCertContext
,
DWORD
dwType
,
DWORD
dwFlags
,
const
void
*
pvPara
)
{
CERT_PUBLIC_KEY_INFO
*
publicKey
=
(
CERT_PUBLIC_KEY_INFO
*
)
pvPara
;
BOOL
ret
;
ret
=
CertComparePublicKeyInfo
(
pCertContext
->
dwCertEncodingType
,
&
pCertContext
->
pCertInfo
->
SubjectPublicKeyInfo
,
publicKey
);
return
ret
;
}
static
BOOL
compare_cert_by_subject_cert
(
PCCERT_CONTEXT
pCertContext
,
DWORD
dwType
,
DWORD
dwFlags
,
const
void
*
pvPara
)
{
...
...
@@ -1201,6 +1212,9 @@ PCCERT_CONTEXT WINAPI CertFindCertificateInStore(HCERTSTORE hCertStore,
case
CERT_COMPARE_NAME
:
compare
=
compare_cert_by_name
;
break
;
case
CERT_COMPARE_PUBLIC_KEY
:
compare
=
compare_cert_by_public_key
;
break
;
case
CERT_COMPARE_SUBJECT_CERT
:
compare
=
compare_cert_by_subject_cert
;
break
;
...
...
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