Santino Mazza : ncrypt/tests: Test for symmetric keys support.

Alexandre Julliard julliard at winehq.org
Tue Mar 8 16:10:48 CST 2022


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

Author: Santino Mazza <mazzasantino1206 at gmail.com>
Date:   Tue Mar  8 11:10:56 2022 +0100

ncrypt/tests: Test for symmetric keys support.

Signed-off-by: Santino Mazza <mazzasantino1206 at gmail.com>
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/ncrypt/tests/ncrypt.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/dlls/ncrypt/tests/ncrypt.c b/dlls/ncrypt/tests/ncrypt.c
index d1bcbbcab2a..cf434054428 100644
--- a/dlls/ncrypt/tests/ncrypt.c
+++ b/dlls/ncrypt/tests/ncrypt.c
@@ -291,6 +291,13 @@ static void test_create_persisted_key(void)
 
     NCryptFinalizeKey(key, 0);
     NCryptFreeObject(key);
+
+    key = 0;
+    ret = NCryptCreatePersistedKey(prov, &key, BCRYPT_AES_ALGORITHM, NULL, 0, 0);
+    ok(ret == ERROR_SUCCESS || broken(ret == NTE_NOT_SUPPORTED) /* win 7 */, "got %#lx\n", ret);
+    if (ret == NTE_NOT_SUPPORTED) win_skip("broken, symmetric keys not supported.\n");
+    else ok(key, "got null handle\n");
+
     NCryptFreeObject(prov);
     }
 }




More information about the wine-cvs mailing list