summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-03-24 23:50:32 +0100
committerSimo Sorce <idra@samba.org>2010-07-07 23:45:51 -0400
commit4b56e6e95b7176921dc1bb28c344975074f4f17d (patch)
treeb4bff12932c91e2d39e30adff3e2fba450888b64
parent0f02dda9154aeeda20d7bb3ca88bbaf89174e3ce (diff)
downloadsamba-4b56e6e95b7176921dc1bb28c344975074f4f17d.tar.gz
samba-4b56e6e95b7176921dc1bb28c344975074f4f17d.tar.bz2
samba-4b56e6e95b7176921dc1bb28c344975074f4f17d.zip
s3-dcerpc: add dcerpc_push_schannel_bind().
Guenther Signed-off-by: Simo Sorce <idra@samba.org>
-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 b793938f9e..61cb429502 100644
--- a/source3/rpc_client/cli_pipe.c
+++ b/source3/rpc_client/cli_pipe.c
@@ -358,6 +358,28 @@ NTSTATUS dcerpc_pull_ncacn_packet(TALLOC_CTX *mem_ctx,
}
/*******************************************************************
+ ********************************************************************/
+
+static NTSTATUS dcerpc_push_schannel_bind(TALLOC_CTX *mem_ctx,
+ struct NL_AUTH_MESSAGE *r,
+ DATA_BLOB *blob)
+{
+ enum ndr_err_code ndr_err;
+
+ ndr_err = ndr_push_struct_blob(blob, mem_ctx, r,
+ (ndr_push_flags_fn_t)ndr_push_NL_AUTH_MESSAGE);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
+ return ndr_map_error2ntstatus(ndr_err);
+ }
+
+ if (DEBUGLEVEL >= 10) {
+ NDR_PRINT_DEBUG(NL_AUTH_MESSAGE, 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
********************************************************************/