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
aa0f8234
Commit
aa0f8234
authored
Aug 13, 2007
by
Juan Lang
Committed by
Alexandre Julliard
Aug 14, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Test finding the issuer of a certificate.
parent
f7bcc26c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
cert.c
dlls/crypt32/tests/cert.c
+14
-2
No files found.
dlls/crypt32/tests/cert.c
View file @
aa0f8234
...
...
@@ -929,7 +929,7 @@ static BYTE iTunesSerialNum[] = {
static
void
testFindCert
(
void
)
{
HCERTSTORE
store
;
PCCERT_CONTEXT
context
=
NULL
;
PCCERT_CONTEXT
context
=
NULL
,
subject
;
BOOL
ret
;
CERT_INFO
certInfo
=
{
0
};
CRYPT_HASH_BLOB
blob
;
...
...
@@ -1067,7 +1067,7 @@ static void testFindCert(void)
ok
(
ret
,
"CertAddEncodedCertificateToStore failed: %08x
\n
"
,
GetLastError
());
ret
=
CertAddEncodedCertificateToStore
(
store
,
X509_ASN_ENCODING
,
iTunesCert3
,
sizeof
(
iTunesCert3
),
CERT_STORE_ADD_NEW
,
NULL
);
iTunesCert3
,
sizeof
(
iTunesCert3
),
CERT_STORE_ADD_NEW
,
&
subject
);
ok
(
ret
,
"CertAddEncodedCertificateToStore failed: %08x
\n
"
,
GetLastError
());
...
...
@@ -1098,6 +1098,18 @@ static void testFindCert(void)
ok
(
context
==
NULL
,
"Expected one cert only
\n
"
);
}
context
=
CertFindCertificateInStore
(
store
,
X509_ASN_ENCODING
,
0
,
CERT_FIND_ISSUER_OF
,
subject
,
NULL
);
ok
(
context
!=
NULL
,
"Expected an issuer
\n
"
);
if
(
context
)
{
PCCERT_CONTEXT
none
=
CertFindCertificateInStore
(
store
,
X509_ASN_ENCODING
,
0
,
CERT_FIND_ISSUER_OF
,
context
,
NULL
);
ok
(
!
none
,
"Expected no parent of issuer
\n
"
);
CertFreeCertificateContext
(
context
);
}
CertFreeCertificateContext
(
subject
);
CertCloseStore
(
store
,
0
);
}
...
...
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