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
3be75ceb
Commit
3be75ceb
authored
May 25, 2006
by
Juan Lang
Committed by
Alexandre Julliard
May 25, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Use public functions when finding certificates.
parent
163ee765
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
14 deletions
+12
-14
cert.c
dlls/crypt32/cert.c
+12
-14
No files found.
dlls/crypt32/cert.c
View file @
3be75ceb
...
...
@@ -553,7 +553,12 @@ BOOL WINAPI CertCompareIntegerBlob(PCRYPT_INTEGER_BLOB pInt1,
cb1
=
CRYPT_significantBytes
(
pInt1
);
cb2
=
CRYPT_significantBytes
(
pInt2
);
if
(
cb1
==
cb2
)
ret
=
!
memcmp
(
pInt1
->
pbData
,
pInt1
->
pbData
,
cb1
);
{
if
(
cb1
)
ret
=
!
memcmp
(
pInt1
->
pbData
,
pInt1
->
pbData
,
cb1
);
else
ret
=
TRUE
;
}
else
ret
=
FALSE
;
return
ret
;
...
...
@@ -634,32 +639,25 @@ static BOOL compare_cert_by_sha1_hash(PCCERT_CONTEXT pCertContext, DWORD dwType,
static
BOOL
compare_cert_by_name
(
PCCERT_CONTEXT
pCertContext
,
DWORD
dwType
,
DWORD
dwFlags
,
const
void
*
pvPara
)
{
const
CERT_NAME_BLOB
*
blob
=
(
const
CERT_NAME_BLOB
*
)
pvPara
,
*
toCompare
;
CERT_NAME_BLOB
*
blob
=
(
CERT_NAME_BLOB
*
)
pvPara
,
*
toCompare
;
BOOL
ret
;
if
(
dwType
&
CERT_INFO_SUBJECT_FLAG
)
toCompare
=
&
pCertContext
->
pCertInfo
->
Subject
;
else
toCompare
=
&
pCertContext
->
pCertInfo
->
Issuer
;
if
(
toCompare
->
cbData
==
blob
->
cbData
)
ret
=
!
memcmp
(
toCompare
->
pbData
,
blob
->
pbData
,
blob
->
cbData
);
else
ret
=
FALSE
;
ret
=
CertCompareCertificateName
(
pCertContext
->
dwCertEncodingType
,
toCompare
,
blob
);
return
ret
;
}
static
BOOL
compare_cert_by_subject_cert
(
PCCERT_CONTEXT
pCertContext
,
DWORD
dwType
,
DWORD
dwFlags
,
const
void
*
pvPara
)
{
const
CERT_INFO
*
pCertInfo
=
(
const
CERT_INFO
*
)
pvPara
;
BOOL
ret
;
CERT_INFO
*
pCertInfo
=
(
CERT_INFO
*
)
pvPara
;
if
(
pCertInfo
->
Issuer
.
cbData
==
pCertContext
->
pCertInfo
->
Subject
.
cbData
)
ret
=
!
memcmp
(
pCertInfo
->
Issuer
.
pbData
,
pCertContext
->
pCertInfo
->
Subject
.
pbData
,
pCertInfo
->
Issuer
.
cbData
);
else
ret
=
FALSE
;
return
ret
;
return
CertCompareCertificateName
(
pCertContext
->
dwCertEncodingType
,
&
pCertInfo
->
Issuer
,
&
pCertContext
->
pCertInfo
->
Subject
);
}
static
BOOL
compare_cert_by_issuer
(
PCCERT_CONTEXT
pCertContext
,
...
...
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