André Hentschel : rsaenh/tests: Test the reported length on success.

Alexandre Julliard julliard at winehq.org
Wed Feb 16 11:14:11 CST 2011


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

Author: André Hentschel <nerv at dawncrow.de>
Date:   Tue Feb 15 19:49:14 2011 +0100

rsaenh/tests: Test the reported length on success.

---

 dlls/rsaenh/tests/rsaenh.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/dlls/rsaenh/tests/rsaenh.c b/dlls/rsaenh/tests/rsaenh.c
index 6b0faeb..ccccb59 100644
--- a/dlls/rsaenh/tests/rsaenh.c
+++ b/dlls/rsaenh/tests/rsaenh.c
@@ -947,10 +947,12 @@ static void test_aes(int keylen)
 
     for (i=0; i<sizeof(pbData); i++) pbData[i] = (unsigned char)i;
 
-    /* AES provider doesn't support salt */
+    /* Does AES provider support salt? */
     result = CryptGetKeyParam(hKey, KP_SALT, NULL, &dwLen, 0);
     ok((!result && GetLastError() == NTE_BAD_KEY) || result /* Win7 */,
        "expected NTE_BAD_KEY, got %08x\n", GetLastError());
+    if (result)
+        ok(!dwLen, "unexpected salt length %d\n", dwLen);
 
     dwLen = 13;
     result = CryptEncrypt(hKey, 0, TRUE, 0, pbData, &dwLen, 16);




More information about the wine-cvs mailing list