[PATCH] secur32: Add a test for Schannel behaviour with SECPKG_ATTR_NEGOTIATION_INFO query.

Dmitry Timoshkov dmitry at baikal.ru
Thu Dec 14 03:19:06 CST 2017


Signed-off-by: Dmitry Timoshkov <dmitry at baikal.ru>
---
 dlls/secur32/tests/schannel.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/dlls/secur32/tests/schannel.c b/dlls/secur32/tests/schannel.c
index b5ed169a97..21ebb6283f 100644
--- a/dlls/secur32/tests/schannel.c
+++ b/dlls/secur32/tests/schannel.c
@@ -686,6 +686,7 @@ static void test_communication(void)
     SecPkgContext_ConnectionInfo conn_info;
     SecPkgContext_KeyInfoA key_info;
     CERT_CONTEXT *cert;
+    SecPkgContext_NegotiationInfoA info;
 
     SecBufferDesc buffers[2];
     SecBuffer *buf;
@@ -939,6 +940,9 @@ todo_wine
     status = pQueryContextAttributesA(&context, SECPKG_ATTR_STREAM_SIZES, &sizes);
     ok(status == SEC_E_OK, "QueryContextAttributesW(SECPKG_ATTR_STREAM_SIZES) failed: %08x\n", status);
 
+    status = QueryContextAttributesA(&context, SECPKG_ATTR_NEGOTIATION_INFO, &info);
+    ok(status == SEC_E_UNSUPPORTED_FUNCTION, "QueryContextAttributesA returned %08x\n", status);
+
     reset_buffers(&buffers[0]);
 
     /* Send a simple request so we get data for testing DecryptMessage */
-- 
2.15.1




More information about the wine-devel mailing list