Commit 4d1fa583 authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

rpcrt4/tests: Don't crash on NT4.

parent e4897a82
...@@ -1346,7 +1346,7 @@ s_authinfo_test(unsigned int protseq, int secure) ...@@ -1346,7 +1346,7 @@ s_authinfo_test(unsigned int protseq, int secure)
todo_wine todo_wine
ok(principal != NULL, "NULL principal\n"); ok(principal != NULL, "NULL principal\n");
} }
if (protseq == RPC_PROTSEQ_LRPC && principal) if (protseq == RPC_PROTSEQ_LRPC && principal && pGetUserNameExA)
{ {
int len; int len;
char *spn; char *spn;
...@@ -1399,6 +1399,9 @@ set_auth_info(RPC_BINDING_HANDLE handle) ...@@ -1399,6 +1399,9 @@ set_auth_info(RPC_BINDING_HANDLE handle)
RPC_STATUS status; RPC_STATUS status;
RPC_SECURITY_QOS qos; RPC_SECURITY_QOS qos;
if (!pGetUserNameExA)
return;
qos.Version = 1; qos.Version = 1;
qos.Capabilities = RPC_C_QOS_CAPABILITIES_MUTUAL_AUTH; qos.Capabilities = RPC_C_QOS_CAPABILITIES_MUTUAL_AUTH;
qos.IdentityTracking = RPC_C_QOS_IDENTITY_STATIC; qos.IdentityTracking = RPC_C_QOS_IDENTITY_STATIC;
...@@ -1573,6 +1576,8 @@ START_TEST(server) ...@@ -1573,6 +1576,8 @@ START_TEST(server)
domain_and_user = HeapAlloc(GetProcessHeap(), 0, size); domain_and_user = HeapAlloc(GetProcessHeap(), 0, size);
ok(pGetUserNameExA(NameSamCompatible, domain_and_user, &size), "GetUserNameExA\n"); ok(pGetUserNameExA(NameSamCompatible, domain_and_user, &size), "GetUserNameExA\n");
} }
else
win_skip("GetUserNameExA is needed for some authentication tests\n");
argc = winetest_get_mainargs(&argv); argc = winetest_get_mainargs(&argv);
progname = argv[0]; progname = argv[0];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment