From 1941b5cef04c39ddf89fb236d1d81167c0b25e6b Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 19 Nov 2003 12:03:11 +0000 Subject: started to expand the echo tests to include more interesting test cases. We fail one of the alignment tests. (This used to be commit 5bb21e57b844e98cc8f1dc264bc45097c08329e3) --- source4/librpc/rpc/rpc_echo.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'source4/librpc/rpc/rpc_echo.c') diff --git a/source4/librpc/rpc/rpc_echo.c b/source4/librpc/rpc/rpc_echo.c index 38b394dbf6..c774dbb36e 100644 --- a/source4/librpc/rpc/rpc_echo.c +++ b/source4/librpc/rpc/rpc_echo.c @@ -102,3 +102,24 @@ NTSTATUS dcerpc_TestCall(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct Test return status; } + +NTSTATUS dcerpc_TestCall2(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct TestCall2 *r) +{ + NTSTATUS status; + + if (p->flags & DCERPC_DEBUG_PRINT_IN) { + NDR_PRINT_IN_DEBUG(TestCall2, r); + } + + status = dcerpc_ndr_request(p, DCERPC_TESTCALL2, mem_ctx, + (ndr_push_fn_t) ndr_push_TestCall2, + (ndr_pull_fn_t) ndr_pull_TestCall2, + r); + + if (NT_STATUS_IS_OK(status) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) { + NDR_PRINT_OUT_DEBUG(TestCall2, r); + } + if (NT_STATUS_IS_OK(status)) status = r->out.result; + + return status; +} -- cgit