wintrust/tests: Add some additional tests.

Signed-off-by: Vijay Kiran Kamuju <infyquest@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Sebastian Lackner 2019-03-22 10:27:17 +01:00 committed by Alexandre Julliard
parent eaf68e99ba
commit 0e84010766
1 changed files with 20 additions and 0 deletions

View File

@ -1149,6 +1149,16 @@ static void test_wintrust_digest(void)
{{ SelfSignedFile32, sizeof(SelfSignedFile32) }}, {{ SelfSignedFile32, sizeof(SelfSignedFile32) }},
{ CERT_E_CHAINING, TRUE }, { S_OK, FALSE } { CERT_E_CHAINING, TRUE }, { S_OK, FALSE }
}, },
{
{{ SelfSignedFile32, sizeof(SelfSignedFile32) },
{ Dummy, sizeof(Dummy) }},
{ TRUST_E_NOSIGNATURE, TRUE }, { TRUST_E_NOSIGNATURE, TRUE }
},
{
{{ Dummy, sizeof(Dummy) },
{ SelfSignedFile32 + sizeof(Dummy), sizeof(SelfSignedFile32) - sizeof(Dummy) }},
{ TRUST_E_SUBJECT_FORM_UNKNOWN, FALSE }, { TRUST_E_NOSIGNATURE, TRUE }
},
{ {
{{ SelfSignedFile32, 19 }, {{ SelfSignedFile32, 19 },
{ Dummy, sizeof(Dummy) }, { Dummy, sizeof(Dummy) },
@ -1169,6 +1179,16 @@ static void test_wintrust_digest(void)
{{ SelfSignedFile64, sizeof(SelfSignedFile64) }}, {{ SelfSignedFile64, sizeof(SelfSignedFile64) }},
{ CERT_E_CHAINING, TRUE }, { S_OK, FALSE } { CERT_E_CHAINING, TRUE }, { S_OK, FALSE }
}, },
{
{{ SelfSignedFile64, sizeof(SelfSignedFile64) },
{ Dummy, sizeof(Dummy) }},
{ TRUST_E_NOSIGNATURE, TRUE }, { TRUST_E_NOSIGNATURE, TRUE }
},
{
{{ Dummy, sizeof(Dummy) },
{ SelfSignedFile64 + sizeof(Dummy), sizeof(SelfSignedFile64) - sizeof(Dummy) }},
{ TRUST_E_SUBJECT_FORM_UNKNOWN, FALSE }, { TRUST_E_NOSIGNATURE, TRUE }
},
{ {
{{ SelfSignedFile64, 19 }, {{ SelfSignedFile64, 19 },
{ Dummy, sizeof(Dummy) }, { Dummy, sizeof(Dummy) },