summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-03-16 10:32:56 +0100
committerStefan Metzmacher <metze@samba.org>2010-03-16 15:35:29 +0100
commit8bc8e6ca0390d92ac536624c8ca02c247be23755 (patch)
tree0f948e309835961d888fdafe7087bda9e6380a89
parent004a8413178f14825d7c7ab0a9bdfc37592bfb64 (diff)
downloadsamba-8bc8e6ca0390d92ac536624c8ca02c247be23755.tar.gz
samba-8bc8e6ca0390d92ac536624c8ca02c247be23755.tar.bz2
samba-8bc8e6ca0390d92ac536624c8ca02c247be23755.zip
s4:torture/rpc/initshutdown.c: make use of dcerpc_binding_handle stubs
metze
-rw-r--r--source4/torture/rpc/initshutdown.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source4/torture/rpc/initshutdown.c b/source4/torture/rpc/initshutdown.c
index 22ba3f2812..5b1035a3ab 100644
--- a/source4/torture/rpc/initshutdown.c
+++ b/source4/torture/rpc/initshutdown.c
@@ -35,10 +35,11 @@ static bool test_Abort(struct torture_context *tctx,
struct initshutdown_Abort r;
NTSTATUS status;
uint16_t server = 0x0;
+ struct dcerpc_binding_handle *b = p->binding_handle;
r.in.server = &server;
- status = dcerpc_initshutdown_Abort(p, tctx, &r);
+ status = dcerpc_initshutdown_Abort_r(b, tctx, &r);
torture_assert_ntstatus_ok(tctx, status,
"initshutdown_Abort failed");
@@ -54,6 +55,7 @@ static bool test_Init(struct torture_context *tctx,
struct initshutdown_Init r;
NTSTATUS status;
uint16_t hostname = 0x0;
+ struct dcerpc_binding_handle *b = p->binding_handle;
r.in.hostname = &hostname;
r.in.message = talloc(tctx, struct lsa_StringLarge);
@@ -62,7 +64,7 @@ static bool test_Init(struct torture_context *tctx,
r.in.timeout = 30;
r.in.do_reboot = 1;
- status = dcerpc_initshutdown_Init(p, tctx, &r);
+ status = dcerpc_initshutdown_Init_r(b, tctx, &r);
torture_assert_ntstatus_ok(tctx, status, "initshutdown_Init failed");
torture_assert_werr_ok(tctx, r.out.result, "initshutdown_Init failed");
@@ -76,6 +78,7 @@ static bool test_InitEx(struct torture_context *tctx,
struct initshutdown_InitEx r;
NTSTATUS status;
uint16_t hostname = 0x0;
+ struct dcerpc_binding_handle *b = p->binding_handle;
r.in.hostname = &hostname;
r.in.message = talloc(tctx, struct lsa_StringLarge);
@@ -85,7 +88,7 @@ static bool test_InitEx(struct torture_context *tctx,
r.in.do_reboot = 1;
r.in.reason = 0;
- status = dcerpc_initshutdown_InitEx(p, tctx, &r);
+ status = dcerpc_initshutdown_InitEx_r(b, tctx, &r);
torture_assert_ntstatus_ok(tctx, status, "initshutdown_InitEx failed");