secur32: Reserved3 / Reserved4 are actually EncryptMessage / DecryptMessage.

This commit is contained in:
H. Verbeet 2008-08-19 17:50:53 +02:00 committed by Alexandre Julliard
parent 898c2c9778
commit af96a43ce9
2 changed files with 8 additions and 12 deletions

View File

@ -104,8 +104,8 @@ static SecurityFunctionTableA securityFunctionTableA = {
VerifySignature, VerifySignature,
FreeContextBuffer, FreeContextBuffer,
QuerySecurityPackageInfoA, QuerySecurityPackageInfoA,
NULL, /* Reserved3 */ EncryptMessage, /* Reserved3 */
NULL, /* Reserved4 */ DecryptMessage, /* Reserved4 */
ExportSecurityContext, ExportSecurityContext,
ImportSecurityContextA, ImportSecurityContextA,
AddCredentialsA, AddCredentialsA,
@ -135,8 +135,8 @@ static SecurityFunctionTableW securityFunctionTableW = {
VerifySignature, VerifySignature,
FreeContextBuffer, FreeContextBuffer,
QuerySecurityPackageInfoW, QuerySecurityPackageInfoW,
NULL, /* Reserved3 */ EncryptMessage, /* Reserved3 */
NULL, /* Reserved4 */ DecryptMessage, /* Reserved4 */
ExportSecurityContext, ExportSecurityContext,
ImportSecurityContextW, ImportSecurityContextW,
AddCredentialsW, AddCredentialsW,

View File

@ -99,10 +99,8 @@ static void test_InitSecurityInterface(void)
ok(sftA != NULL, "pInitSecurityInterfaceA failed\n"); ok(sftA != NULL, "pInitSecurityInterfaceA failed\n");
ok(sftA->dwVersion == SECURITY_SUPPORT_PROVIDER_INTERFACE_VERSION, "wrong dwVersion %ld in security function table\n", sftA->dwVersion); ok(sftA->dwVersion == SECURITY_SUPPORT_PROVIDER_INTERFACE_VERSION, "wrong dwVersion %ld in security function table\n", sftA->dwVersion);
ok(!sftA->Reserved2, "Reserved2 should be NULL instead of %p in security function table\n", sftA->Reserved2); ok(!sftA->Reserved2, "Reserved2 should be NULL instead of %p in security function table\n", sftA->Reserved2);
todo_wine ok(sftA->Reserved3 == sftA->EncryptMessage, "Reserved3 should be equal to EncryptMessage in the security function table\n");
ok(sftA->Reserved3 != NULL, "Reserved3 should not be NULL in security function table\n"); ok(sftA->Reserved4 == sftA->DecryptMessage, "Reserved4 should be equal to DecryptMessage in the security function table\n");
todo_wine
ok(sftA->Reserved4 != NULL, "Reserved4 should not be NULL in security function table\n");
if (!pInitSecurityInterfaceW) if (!pInitSecurityInterfaceW)
{ {
@ -114,10 +112,8 @@ static void test_InitSecurityInterface(void)
ok(sftW != NULL, "pInitSecurityInterfaceW failed\n"); ok(sftW != NULL, "pInitSecurityInterfaceW failed\n");
ok(sftW->dwVersion == SECURITY_SUPPORT_PROVIDER_INTERFACE_VERSION, "wrong dwVersion %ld in security function table\n", sftW->dwVersion); ok(sftW->dwVersion == SECURITY_SUPPORT_PROVIDER_INTERFACE_VERSION, "wrong dwVersion %ld in security function table\n", sftW->dwVersion);
ok(!sftW->Reserved2, "Reserved2 should be NULL instead of %p in security function table\n", sftW->Reserved2); ok(!sftW->Reserved2, "Reserved2 should be NULL instead of %p in security function table\n", sftW->Reserved2);
todo_wine ok(sftW->Reserved3 == sftW->EncryptMessage, "Reserved3 should be equal to EncryptMessage in the security function table\n");
ok(sftW->Reserved3 != NULL, "Reserved3 should note be NULL in security function table\n"); ok(sftW->Reserved4 == sftW->DecryptMessage, "Reserved4 should be equal to DecryptMessage in the security function table\n");
todo_wine
ok(sftW->Reserved4 != NULL, "Reserved4 should not be NULL in security function table\n");
} }
START_TEST(secur32) START_TEST(secur32)