[PATCH 2/2] wintrust/tests: Add some additional tests.
Vijay Kiran Kamuju
infyquest at gmail.com
Fri Mar 22 04:27:17 CDT 2019
From: Sebastian Lackner <sebastian at fds-team.de>
Signed-off-by: Vijay Kiran Kamuju <infyquest at gmail.com>
---
dlls/wintrust/tests/softpub.c | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/dlls/wintrust/tests/softpub.c b/dlls/wintrust/tests/softpub.c
index c1cb9599e6..5d6d62c9e9 100644
--- a/dlls/wintrust/tests/softpub.c
+++ b/dlls/wintrust/tests/softpub.c
@@ -1149,6 +1149,16 @@ static void test_wintrust_digest(void)
{{ SelfSignedFile32, sizeof(SelfSignedFile32) }},
{ 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 },
{ Dummy, sizeof(Dummy) },
@@ -1169,6 +1179,16 @@ static void test_wintrust_digest(void)
{{ SelfSignedFile64, sizeof(SelfSignedFile64) }},
{ 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 },
{ Dummy, sizeof(Dummy) },
--
2.21.0
More information about the wine-devel
mailing list