Sebastian Lackner : wintrust/tests: Add some additional tests.

Alexandre Julliard julliard at winehq.org
Wed Mar 27 17:27:38 CDT 2019


Module: wine
Branch: master
Commit: 0e8401076679f337655e72fa1726f05fcd89e069
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=0e8401076679f337655e72fa1726f05fcd89e069

Author: Sebastian Lackner <sebastian at fds-team.de>
Date:   Fri Mar 22 10:27:17 2019 +0100

wintrust/tests: Add some additional tests.

Signed-off-by: Vijay Kiran Kamuju <infyquest at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 c1cb959..5d6d62c 100644
--- a/dlls/wintrust/tests/softpub.c
+++ b/dlls/wintrust/tests/softpub.c
@@ -1150,6 +1150,16 @@ static void test_wintrust_digest(void)
             { 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) },
              { SelfSignedFile32 + 19 + sizeof(Dummy), sizeof(SelfSignedFile32) - 19 - sizeof(Dummy) }},
@@ -1170,6 +1180,16 @@ static void test_wintrust_digest(void)
             { 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) },
              { SelfSignedFile64 + 19 + sizeof(Dummy), sizeof(SelfSignedFile64) - 19 - sizeof(Dummy) }},




More information about the wine-cvs mailing list