summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-04-01 23:39:20 +0200
committerSimo Sorce <idra@samba.org>2010-07-08 00:52:34 -0400
commit49c529349285a79f13b0e1f261f815c4beb62646 (patch)
tree2388460d016094cc6526c452a10cd483b2c47bc9 /source3
parentfe9ce4b60c60273d67b9616f7dcef2020136ddac (diff)
downloadsamba-49c529349285a79f13b0e1f261f815c4beb62646.tar.gz
samba-49c529349285a79f13b0e1f261f815c4beb62646.tar.bz2
samba-49c529349285a79f13b0e1f261f815c4beb62646.zip
s3-dcerpc: add dcerpc_pull_dcerpc_auth().
Guenther Signed-off-by: Simo Sorce <idra@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_client/cli_pipe.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c
index da1219ed61..76744c4302 100644
--- a/source3/rpc_client/cli_pipe.c
+++ b/source3/rpc_client/cli_pipe.c
@@ -402,6 +402,28 @@ static NTSTATUS dcerpc_push_schannel_bind(TALLOC_CTX *mem_ctx,
}
/*******************************************************************
+ ********************************************************************/
+
+static NTSTATUS dcerpc_pull_dcerpc_auth(TALLOC_CTX *mem_ctx,
+ const DATA_BLOB *blob,
+ struct dcerpc_auth *r)
+{
+ enum ndr_err_code ndr_err;
+
+ ndr_err = ndr_pull_struct_blob(blob, mem_ctx, r,
+ (ndr_pull_flags_fn_t)ndr_pull_dcerpc_auth);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
+ return ndr_map_error2ntstatus(ndr_err);
+ }
+
+ if (DEBUGLEVEL >= 10) {
+ NDR_PRINT_DEBUG(dcerpc_auth, r);
+ }
+
+ return NT_STATUS_OK;
+}
+
+/*******************************************************************
Use SMBreadX to get rest of one fragment's worth of rpc data.
Reads the whole size or give an error message
********************************************************************/