summaryrefslogtreecommitdiff
path: root/source4/librpc/rpc
diff options
context:
space:
mode:
Diffstat (limited to 'source4/librpc/rpc')
-rw-r--r--source4/librpc/rpc/dcerpc.c2
-rw-r--r--source4/librpc/rpc/rpc_dfs.c82
-rw-r--r--source4/librpc/rpc/rpc_echo.c8
3 files changed, 92 insertions, 0 deletions
diff --git a/source4/librpc/rpc/dcerpc.c b/source4/librpc/rpc/dcerpc.c
index 3018b8621b..82c07dd197 100644
--- a/source4/librpc/rpc/dcerpc.c
+++ b/source4/librpc/rpc/dcerpc.c
@@ -792,6 +792,8 @@ NTSTATUS dcerpc_ndr_request(struct dcerpc_pipe *p,
goto failed;
}
+ dump_data(10, pull->data, pull->data_size);
+
/* pull the structure from the blob */
status = ndr_pull(pull, struct_ptr);
if (!NT_STATUS_IS_OK(status)) {
diff --git a/source4/librpc/rpc/rpc_dfs.c b/source4/librpc/rpc/rpc_dfs.c
new file mode 100644
index 0000000000..1e827bda07
--- /dev/null
+++ b/source4/librpc/rpc/rpc_dfs.c
@@ -0,0 +1,82 @@
+/* dcerpc client calls auto-generated by pidl */
+
+#include "includes.h"
+
+
+NTSTATUS dcerpc_dfs_Exist(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct dfs_Exist *r)
+{
+ return dcerpc_ndr_request(p, DCERPC_DFS_EXIST, mem_ctx,
+ (ndr_push_fn_t) ndr_push_dfs_Exist,
+ (ndr_pull_fn_t) ndr_pull_dfs_Exist,
+ r);
+}
+
+NTSTATUS dcerpc_dfs_Add(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct dfs_Add *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_DFS_ADD, mem_ctx,
+ (ndr_push_fn_t) ndr_push_dfs_Add,
+ (ndr_pull_fn_t) ndr_pull_dfs_Add,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_dfs_Remove(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct dfs_Remove *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_DFS_REMOVE, mem_ctx,
+ (ndr_push_fn_t) ndr_push_dfs_Remove,
+ (ndr_pull_fn_t) ndr_pull_dfs_Remove,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_dfs_UNKNOWN3(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct dfs_UNKNOWN3 *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_DFS_UNKNOWN3, mem_ctx,
+ (ndr_push_fn_t) ndr_push_dfs_UNKNOWN3,
+ (ndr_pull_fn_t) ndr_pull_dfs_UNKNOWN3,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_dfs_Info(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct dfs_Info *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_DFS_INFO, mem_ctx,
+ (ndr_push_fn_t) ndr_push_dfs_Info,
+ (ndr_pull_fn_t) ndr_pull_dfs_Info,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_dfs_Enum(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct dfs_Enum *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_DFS_ENUM, mem_ctx,
+ (ndr_push_fn_t) ndr_push_dfs_Enum,
+ (ndr_pull_fn_t) ndr_pull_dfs_Enum,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
diff --git a/source4/librpc/rpc/rpc_echo.c b/source4/librpc/rpc/rpc_echo.c
index e5cbb913a1..b7e3bf4e7c 100644
--- a/source4/librpc/rpc/rpc_echo.c
+++ b/source4/librpc/rpc/rpc_echo.c
@@ -34,3 +34,11 @@ NTSTATUS dcerpc_echo_SourceData(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, stru
(ndr_pull_fn_t) ndr_pull_echo_SourceData,
r);
}
+
+NTSTATUS dcerpc_TestCall(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct TestCall *r)
+{
+ return dcerpc_ndr_request(p, DCERPC_TESTCALL, mem_ctx,
+ (ndr_push_fn_t) ndr_push_TestCall,
+ (ndr_pull_fn_t) ndr_pull_TestCall,
+ r);
+}