mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 23:42:57 +00:00
[SECUR32_WINETEST] Sync with Wine Staging 1.9.4. CORE-10912
svn path=/trunk/; revision=70930
This commit is contained in:
parent
a12a32176f
commit
6a78ba7288
2 changed files with 7 additions and 4 deletions
|
@ -928,7 +928,7 @@ static void testSignSeal(void)
|
||||||
static char sec_pkg_name[] = "NTLM";
|
static char sec_pkg_name[] = "NTLM";
|
||||||
SecBufferDesc crypt;
|
SecBufferDesc crypt;
|
||||||
SecBuffer data[2], fake_data[2], complex_data[4];
|
SecBuffer data[2], fake_data[2], complex_data[4];
|
||||||
ULONG qop = 0;
|
ULONG qop = 0xdeadbeef;
|
||||||
SecPkgContext_Sizes ctxt_sizes;
|
SecPkgContext_Sizes ctxt_sizes;
|
||||||
static char test_user[] = "testuser",
|
static char test_user[] = "testuser",
|
||||||
workgroup[] = "WORKGROUP",
|
workgroup[] = "WORKGROUP",
|
||||||
|
@ -1041,12 +1041,13 @@ static void testSignSeal(void)
|
||||||
ok(sec_status == SEC_E_MESSAGE_ALTERED,
|
ok(sec_status == SEC_E_MESSAGE_ALTERED,
|
||||||
"VerifySignature returned %s, not SEC_E_MESSAGE_ALTERED.\n",
|
"VerifySignature returned %s, not SEC_E_MESSAGE_ALTERED.\n",
|
||||||
getSecError(sec_status));
|
getSecError(sec_status));
|
||||||
|
ok(qop == 0xdeadbeef, "qop changed to %u\n", qop);
|
||||||
|
|
||||||
memcpy(data[0].pvBuffer, message_signature, data[0].cbBuffer);
|
memcpy(data[0].pvBuffer, message_signature, data[0].cbBuffer);
|
||||||
|
|
||||||
sec_status = pVerifySignature(&client.ctxt, &crypt, 0, &qop);
|
sec_status = pVerifySignature(&client.ctxt, &crypt, 0, &qop);
|
||||||
ok(sec_status == SEC_E_OK, "VerifySignature returned %s, not SEC_E_OK.\n",
|
ok(sec_status == SEC_E_OK, "VerifySignature returned %s, not SEC_E_OK.\n",
|
||||||
getSecError(sec_status));
|
getSecError(sec_status));
|
||||||
|
ok(qop == 0xdeadbeef, "qop changed to %u\n", qop);
|
||||||
|
|
||||||
sec_status = pEncryptMessage(&client.ctxt, 0, &crypt, 0);
|
sec_status = pEncryptMessage(&client.ctxt, 0, &crypt, 0);
|
||||||
if (sec_status == SEC_E_UNSUPPORTED_FUNCTION)
|
if (sec_status == SEC_E_UNSUPPORTED_FUNCTION)
|
||||||
|
@ -1093,6 +1094,7 @@ static void testSignSeal(void)
|
||||||
ok(!memcmp(crypt.pBuffers[1].pvBuffer, message_binary,
|
ok(!memcmp(crypt.pBuffers[1].pvBuffer, message_binary,
|
||||||
crypt.pBuffers[1].cbBuffer),
|
crypt.pBuffers[1].cbBuffer),
|
||||||
"Failed to decrypt message correctly.\n");
|
"Failed to decrypt message correctly.\n");
|
||||||
|
ok(qop == 0xdeadbeef, "qop changed to %u\n", qop);
|
||||||
}
|
}
|
||||||
else trace( "A different session key is being used\n" );
|
else trace( "A different session key is being used\n" );
|
||||||
|
|
||||||
|
@ -1130,6 +1132,7 @@ static void testSignSeal(void)
|
||||||
sec_status = pVerifySignature(&client.ctxt, &crypt, 0, &qop);
|
sec_status = pVerifySignature(&client.ctxt, &crypt, 0, &qop);
|
||||||
ok(sec_status == SEC_E_OK, "VerifySignature returned %s, not SEC_E_OK\n",
|
ok(sec_status == SEC_E_OK, "VerifySignature returned %s, not SEC_E_OK\n",
|
||||||
getSecError(sec_status));
|
getSecError(sec_status));
|
||||||
|
ok(qop == 0xdeadbeef, "qop changed to %u\n", qop);
|
||||||
|
|
||||||
sec_status = pEncryptMessage(&client.ctxt, 0, &crypt, 0);
|
sec_status = pEncryptMessage(&client.ctxt, 0, &crypt, 0);
|
||||||
ok(sec_status == SEC_E_OK, "EncryptMessage returned %s, not SEC_E_OK.\n",
|
ok(sec_status == SEC_E_OK, "EncryptMessage returned %s, not SEC_E_OK.\n",
|
||||||
|
@ -1161,6 +1164,7 @@ static void testSignSeal(void)
|
||||||
sec_status = pDecryptMessage(&client.ctxt, &crypt, 0, &qop);
|
sec_status = pDecryptMessage(&client.ctxt, &crypt, 0, &qop);
|
||||||
ok(sec_status == SEC_E_OK, "DecryptMessage returned %s, not SEC_E_OK.\n",
|
ok(sec_status == SEC_E_OK, "DecryptMessage returned %s, not SEC_E_OK.\n",
|
||||||
getSecError(sec_status));
|
getSecError(sec_status));
|
||||||
|
ok(qop == 0xdeadbeef, "qop changed to %u\n", qop);
|
||||||
|
|
||||||
|
|
||||||
end:
|
end:
|
||||||
|
|
|
@ -927,8 +927,7 @@ todo_wine
|
||||||
status = pQueryContextAttributesA(&context, SECPKG_ATTR_CONNECTION_INFO, (void*)&conn_info);
|
status = pQueryContextAttributesA(&context, SECPKG_ATTR_CONNECTION_INFO, (void*)&conn_info);
|
||||||
ok(status == SEC_E_OK, "QueryContextAttributesW(SECPKG_ATTR_CONNECTION_INFO) failed: %08x\n", status);
|
ok(status == SEC_E_OK, "QueryContextAttributesW(SECPKG_ATTR_CONNECTION_INFO) failed: %08x\n", status);
|
||||||
if(status == SEC_E_OK) {
|
if(status == SEC_E_OK) {
|
||||||
ok(conn_info.dwCipherStrength == 128 || conn_info.dwCipherStrength == 168,
|
ok(conn_info.dwCipherStrength >= 128, "conn_info.dwCipherStrength = %d\n", conn_info.dwCipherStrength);
|
||||||
"conn_info.dwCipherStrength = %d\n", conn_info.dwCipherStrength);
|
|
||||||
ok(conn_info.dwHashStrength >= 128, "conn_info.dwHashStrength = %d\n", conn_info.dwHashStrength);
|
ok(conn_info.dwHashStrength >= 128, "conn_info.dwHashStrength = %d\n", conn_info.dwHashStrength);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue