summaryrefslogtreecommitdiff
path: root/source4/librpc/rpc/rpc_echo.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/librpc/rpc/rpc_echo.c')
-rw-r--r--source4/librpc/rpc/rpc_echo.c21
1 files changed, 21 insertions, 0 deletions
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;
+}