Author: akhaldi
Date: Thu Apr 9 14:26:41 2015
New Revision: 67118
URL:
http://svn.reactos.org/svn/reactos?rev=67118&view=rev
Log:
[SECUR32_WINETEST] Sync with Wine Staging 1.7.37. CORE-9246
Modified:
trunk/rostests/winetests/secur32/ntlm.c
trunk/rostests/winetests/secur32/schannel.c
Modified: trunk/rostests/winetests/secur32/ntlm.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/secur32/ntlm.c?…
==============================================================================
--- trunk/rostests/winetests/secur32/ntlm.c [iso-8859-1] (original)
+++ trunk/rostests/winetests/secur32/ntlm.c [iso-8859-1] Thu Apr 9 14:26:41 2015
@@ -1366,9 +1366,8 @@
InitFunctionPtrs();
if(pFreeCredentialsHandle && pDeleteSecurityContext &&
- pDeleteSecurityContext && pAcquireCredentialsHandleA &&
- pInitializeSecurityContextA && pCompleteAuthToken &&
- pQuerySecurityPackageInfoA)
+ pAcquireCredentialsHandleA && pInitializeSecurityContextA &&
+ pCompleteAuthToken && pQuerySecurityPackageInfoA)
{
if(!testAcquireCredentialsHandle())
goto cleanup;
Modified: trunk/rostests/winetests/secur32/schannel.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/secur32/schanne…
==============================================================================
--- trunk/rostests/winetests/secur32/schannel.c [iso-8859-1] (original)
+++ trunk/rostests/winetests/secur32/schannel.c [iso-8859-1] Thu Apr 9 14:26:41 2015
@@ -518,7 +518,7 @@
cert_cnt++;
}
- ok(cert_cnt == 2, "cert_cnt = %u\n", cert_cnt);
+ ok(cert_cnt == 3, "cert_cnt = %u\n", cert_cnt);
ok(incl_remote, "context does not contain cert itself\n");
}
@@ -534,7 +534,7 @@
cred->aphMappers = NULL;
cred->cSupportedAlgs = 0;
cred->palgSupportedAlgs = NULL;
- cred->grbitEnabledProtocols = SP_PROT_SSL3_CLIENT;
+ cred->grbitEnabledProtocols = SP_PROT_TLS1_CLIENT;
cred->dwMinimumCipherStrength = 0;
cred->dwMaximumCipherStrength = 0;
cred->dwSessionLifespan = 0;
@@ -686,7 +686,7 @@
ok(status == SEC_E_OK, "AcquireCredentialsHandleA failed: %08x\n",
status);
if (status != SEC_E_OK) return;
- test_supported_protocols(&cred_handle, SP_PROT_SSL3_CLIENT);
+ test_supported_protocols(&cred_handle, SP_PROT_TLS1_CLIENT);
/* Initialize the connection */
init_buffers(&buffers[0], 4, buf_size);
@@ -701,6 +701,19 @@
buffers[1].cBuffers = 1;
buffers[1].pBuffers[0].BufferType = SECBUFFER_TOKEN;
buffers[0].pBuffers[0].cbBuffer = 1;
+ memset(buffers[1].pBuffers[0].pvBuffer, 0xfa, buf_size);
+ status = pInitializeSecurityContextA(&cred_handle, &context, (SEC_CHAR
*)"localhost",
+ ISC_REQ_CONFIDENTIALITY|ISC_REQ_STREAM,
+ 0, 0, &buffers[1], 0, NULL, &buffers[0], &attrs, NULL);
+todo_wine
+ ok(status == SEC_E_INVALID_TOKEN, "Expected SEC_E_INVALID_TOKEN, got
%08x\n", status);
+todo_wine
+ ok(buffers[0].pBuffers[0].cbBuffer == 0, "Output buffer size was not set to
0.\n");
+
+ buffers[1].cBuffers = 1;
+ buffers[1].pBuffers[0].BufferType = SECBUFFER_TOKEN;
+ buffers[0].pBuffers[0].cbBuffer = 1;
+ memset(buffers[1].pBuffers[0].pvBuffer, 0, buf_size);
status = pInitializeSecurityContextA(&cred_handle, &context, (SEC_CHAR
*)"localhost",
ISC_REQ_CONFIDENTIALITY|ISC_REQ_STREAM,
0, 0, &buffers[1], 0, NULL, &buffers[0], &attrs, NULL);
@@ -708,6 +721,7 @@
todo_wine
ok(buffers[0].pBuffers[0].cbBuffer == 0, "Output buffer size was not set to
0.\n");
+ buffers[0].pBuffers[0].cbBuffer = 0;
status = pInitializeSecurityContextA(&cred_handle, &context, (SEC_CHAR
*)"localhost",
ISC_REQ_CONFIDENTIALITY|ISC_REQ_STREAM,
0, 0, &buffers[1], 0, NULL, &buffers[0], &attrs, NULL);