Kai Blin : secur32: Fix ntlm tests on Vista.

Alexandre Julliard julliard at winehq.org
Wed May 7 13:28:10 CDT 2008


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

Author: Kai Blin <kai.blin at gmail.com>
Date:   Wed May  7 12:35:06 2008 +0200

secur32: Fix ntlm tests on Vista.

---

 dlls/secur32/tests/ntlm.c |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/dlls/secur32/tests/ntlm.c b/dlls/secur32/tests/ntlm.c
index f30f65e..b1f6c3f 100644
--- a/dlls/secur32/tests/ntlm.c
+++ b/dlls/secur32/tests/ntlm.c
@@ -869,8 +869,8 @@ static void testAuth(ULONG data_rep, BOOL fake)
     ok(sec_status == SEC_E_OK,
             "pQueryContextAttributesA(SECPKG_ATTR_SIZES) returned %s\n",
             getSecError(sec_status));
-    ok(ctxt_sizes.cbMaxToken == 1904,
-            "cbMaxToken should be 1904 but is %lu\n",
+    ok((ctxt_sizes.cbMaxToken == 1904) || (ctxt_sizes.cbMaxToken == 2888),
+            "cbMaxToken should be 1904 or 2888 but is %lu\n",
             ctxt_sizes.cbMaxToken);
     ok(ctxt_sizes.cbMaxSignature == 16,
             "cbMaxSignature should be 16 but is %lu\n",
@@ -1039,6 +1039,12 @@ static void testSignSeal(void)
             getSecError(sec_status));
 
     sec_status = pEncryptMessage(client.ctxt, 0, &crypt, 0);
+    if (sec_status == SEC_E_UNSUPPORTED_FUNCTION)
+    {
+        skip("Encrypt message returned SEC_E_UNSUPPORTED_FUNCTION. "
+             "Expected on Vista.\n");
+        goto end;
+    }
     ok(sec_status == SEC_E_OK, "EncryptMessage returned %s, not SEC_E_OK.\n",
             getSecError(sec_status));
 




More information about the wine-cvs mailing list