s4:torture/ntp: make use of dcerpc_binding_handle stubs
authorStefan Metzmacher <metze@samba.org>
Thu, 11 Mar 2010 10:31:36 +0000 (11:31 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 12 Mar 2010 14:25:52 +0000 (15:25 +0100)
metze

source4/torture/ntp/ntp_signd.c

index 763563263be817978f0ab5ea0bec6f701202741a..1d8d7e88e5f438eb6761753e2e8939e6c7870bfb 100644 (file)
@@ -97,7 +97,7 @@ static bool test_ntp_signd(struct torture_context *tctx,
 
        generate_random_buffer(credentials1.data, sizeof(credentials1.data));
 
-       status = dcerpc_netr_ServerReqChallenge(p, tctx, &r);
+       status = dcerpc_netr_ServerReqChallenge_r(p->binding_handle, tctx, &r);
        torture_assert_ntstatus_ok(tctx, status, "ServerReqChallenge");
 
        a.in.server_name = NULL;
@@ -120,7 +120,7 @@ static bool test_ntp_signd(struct torture_context *tctx,
 
        torture_comment(tctx, "Testing ServerAuthenticate3\n");
 
-       status = dcerpc_netr_ServerAuthenticate3(p, tctx, &a);
+       status = dcerpc_netr_ServerAuthenticate3_r(p->binding_handle, tctx, &a);
        torture_assert_ntstatus_ok(tctx, status, "ServerAuthenticate3");
        torture_assert(tctx,
                       netlogon_creds_client_check(creds, &credentials3),