summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-03-18 10:27:41 +0100
committerStefan Metzmacher <metze@samba.org>2010-03-18 12:39:43 +0100
commit95cefcfa4a7da51f11c9662057275830b25555a4 (patch)
tree1c806f3afb57b36c5faaace6de8adab012611ac2 /source4
parent18fa68f2597a68699a3f87674663fb8df57453b9 (diff)
downloadsamba-95cefcfa4a7da51f11c9662057275830b25555a4.tar.gz
samba-95cefcfa4a7da51f11c9662057275830b25555a4.tar.bz2
samba-95cefcfa4a7da51f11c9662057275830b25555a4.zip
s4:torture/rpc/browser.c: make use of dcerpc_binding_handle stubs
metze
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/rpc/browser.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/source4/torture/rpc/browser.c b/source4/torture/rpc/browser.c
index c9bb9d7ff0..34eaf52f18 100644
--- a/source4/torture/rpc/browser.c
+++ b/source4/torture/rpc/browser.c
@@ -26,6 +26,7 @@
bool test_BrowserrQueryOtherDomains(struct torture_context *tctx,
struct dcerpc_pipe *p)
{
+ struct dcerpc_binding_handle *b = p->binding_handle;
struct BrowserrQueryOtherDomains r;
struct BrowserrSrvInfo info;
struct BrowserrSrvInfo100Ctr ctr100;
@@ -53,7 +54,7 @@ bool test_BrowserrQueryOtherDomains(struct torture_context *tctx,
info.level = 100;
info.info.info100 = &ctr100;
- status = dcerpc_BrowserrQueryOtherDomains(p, tctx, &r);
+ status = dcerpc_BrowserrQueryOtherDomains_r(b, tctx, &r);
torture_assert_ntstatus_ok(tctx, status, "BrowserrQueryOtherDomains failed");
torture_assert_werr_ok(tctx, r.out.result, "BrowserrQueryOtherDomains failed");
torture_assert_int_equal(tctx, *r.out.total_entries, 0, "BrowserrQueryOtherDomains");
@@ -62,13 +63,13 @@ bool test_BrowserrQueryOtherDomains(struct torture_context *tctx,
ctr100.entries_read = ARRAY_SIZE(entries100);
ctr100.entries = entries100;
- status = dcerpc_BrowserrQueryOtherDomains(p, tctx, &r);
+ status = dcerpc_BrowserrQueryOtherDomains_r(b, tctx, &r);
torture_assert_ntstatus_ok(tctx, status, "BrowserrQueryOtherDomains failed");
torture_assert_werr_ok(tctx, r.out.result, "BrowserrQueryOtherDomains failed");
torture_assert_int_equal(tctx, *r.out.total_entries, 0, "BrowserrQueryOtherDomains");
info.info.info100 = NULL;
- status = dcerpc_BrowserrQueryOtherDomains(p, tctx, &r);
+ status = dcerpc_BrowserrQueryOtherDomains_r(b, tctx, &r);
torture_assert_ntstatus_ok(tctx, status, "BrowserrQueryOtherDomains failed");
torture_assert_werr_equal(tctx, WERR_INVALID_PARAM, r.out.result,
"BrowserrQueryOtherDomains failed");
@@ -76,7 +77,7 @@ bool test_BrowserrQueryOtherDomains(struct torture_context *tctx,
info.level = 101;
info.info.info101 = &ctr101;
- status = dcerpc_BrowserrQueryOtherDomains(p, tctx, &r);
+ status = dcerpc_BrowserrQueryOtherDomains_r(b, tctx, &r);
torture_assert_ntstatus_ok(tctx, status, "BrowserrQueryOtherDomains failed");
torture_assert_werr_equal(tctx, WERR_UNKNOWN_LEVEL, r.out.result,
"BrowserrQueryOtherDomains");
@@ -85,25 +86,25 @@ bool test_BrowserrQueryOtherDomains(struct torture_context *tctx,
ctr101.entries_read = ARRAY_SIZE(entries101);
ctr101.entries = entries101;
- status = dcerpc_BrowserrQueryOtherDomains(p, tctx, &r);
+ status = dcerpc_BrowserrQueryOtherDomains_r(b, tctx, &r);
torture_assert_ntstatus_ok(tctx, status, "BrowserrQueryOtherDomains failed");
torture_assert_werr_equal(tctx, WERR_UNKNOWN_LEVEL, r.out.result,
"BrowserrQueryOtherDomains");
info.info.info101 = NULL;
- status = dcerpc_BrowserrQueryOtherDomains(p, tctx, &r);
+ status = dcerpc_BrowserrQueryOtherDomains_r(b, tctx, &r);
torture_assert_ntstatus_ok(tctx, status, "BrowserrQueryOtherDomains failed");
torture_assert_werr_equal(tctx, WERR_UNKNOWN_LEVEL, r.out.result,
"BrowserrQueryOtherDomains");
info.level = 102;
- status = dcerpc_BrowserrQueryOtherDomains(p, tctx, &r);
+ status = dcerpc_BrowserrQueryOtherDomains_r(b, tctx, &r);
torture_assert_ntstatus_ok(tctx, status, "BrowserrQueryOtherDomains failed");
torture_assert_werr_equal(tctx, WERR_UNKNOWN_LEVEL, r.out.result,
"BrowserrQueryOtherDomains");
info.level = 0;
- status = dcerpc_BrowserrQueryOtherDomains(p, tctx, &r);
+ status = dcerpc_BrowserrQueryOtherDomains_r(b, tctx, &r);
torture_assert_ntstatus_ok(tctx, status, "BrowserrQueryOtherDomains failed");
torture_assert_werr_equal(tctx, WERR_UNKNOWN_LEVEL, r.out.result,
"BrowserrQueryOtherDomains");