1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

s4:torture/rpc/remact.c: make use of dcerpc_binding_handle stubs

metze
This commit is contained in:
Stefan Metzmacher 2010-03-16 10:42:58 +01:00
parent 54ab68f043
commit 87a5596d46

View File

@ -34,6 +34,7 @@ static bool test_RemoteActivation(struct torture_context *tctx,
NTSTATUS status;
struct GUID iids[1];
uint16_t protseq[3] = { EPM_PROTOCOL_TCP, EPM_PROTOCOL_NCALRPC, EPM_PROTOCOL_UUID };
struct dcerpc_binding_handle *b = p->binding_handle;
ZERO_STRUCT(r.in);
r.in.this_object.version.MajorVersion = 5;
@ -47,7 +48,7 @@ static bool test_RemoteActivation(struct torture_context *tctx,
GUID_from_string(DCERPC_IUNKNOWN_UUID, &iids[0]);
r.in.pIIDs = iids;
status = dcerpc_RemoteActivation(p, tctx, &r);
status = dcerpc_RemoteActivation_r(b, tctx, &r);
torture_assert_ntstatus_ok(tctx, status, "RemoteActivation");
torture_assert_werr_ok(tctx, r.out.result, "RemoteActivation");
@ -60,7 +61,7 @@ static bool test_RemoteActivation(struct torture_context *tctx,
r.in.Interfaces = 1;
r.in.Mode = MODE_GET_CLASS_OBJECT;
status = dcerpc_RemoteActivation(p, tctx, &r);
status = dcerpc_RemoteActivation_r(b, tctx, &r);
torture_assert_ntstatus_ok(tctx, status,
"RemoteActivation(GetClassObject)");