Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
9da1baa1
Commit
9da1baa1
authored
Aug 09, 2007
by
Juan Lang
Committed by
Alexandre Julliard
Aug 10, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Use real certificates to test finding subject certificates, and correct finding them.
parent
8778b9f5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
cert.c
dlls/crypt32/cert.c
+11
-1
cert.c
dlls/crypt32/tests/cert.c
+0
-0
No files found.
dlls/crypt32/cert.c
View file @
9da1baa1
...
...
@@ -908,11 +908,21 @@ static BOOL compare_cert_by_subject_cert(PCCERT_CONTEXT pCertContext,
CERT_INFO
*
pCertInfo
=
(
CERT_INFO
*
)
pvPara
;
BOOL
ret
;
/* Matching serial number and subject match.. */
ret
=
CertCompareCertificateName
(
pCertContext
->
dwCertEncodingType
,
&
pCertInfo
->
Issuer
,
&
pCertContext
->
pCertInfo
->
Subject
);
if
(
ret
&&
pCertInfo
->
SerialNumber
.
cbData
)
if
(
ret
)
ret
=
CertCompareIntegerBlob
(
&
pCertContext
->
pCertInfo
->
SerialNumber
,
&
pCertInfo
->
SerialNumber
);
else
{
/* failing that, if the serial number and issuer match, we match */
ret
=
CertCompareIntegerBlob
(
&
pCertContext
->
pCertInfo
->
SerialNumber
,
&
pCertInfo
->
SerialNumber
);
if
(
ret
)
ret
=
CertCompareCertificateName
(
pCertContext
->
dwCertEncodingType
,
&
pCertInfo
->
Issuer
,
&
pCertContext
->
pCertInfo
->
Issuer
);
}
TRACE
(
"returning %d
\n
"
,
ret
);
return
ret
;
}
...
...
dlls/crypt32/tests/cert.c
View file @
9da1baa1
This diff is collapsed.
Click to expand it.
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