s3-dcerpc: add dcerpc_push_schannel_bind().
authorGünther Deschner <gd@samba.org>
Tue, 24 Mar 2009 22:50:32 +0000 (23:50 +0100)
committerSimo Sorce <idra@samba.org>
Thu, 8 Jul 2010 03:45:51 +0000 (23:45 -0400)
Guenther

Signed-off-by: Simo Sorce <idra@samba.org>
source3/rpc_client/cli_pipe.c

index b793938f9ed66ea636c47ebc95b10f40e7a7246d..61cb429502932a8c31ee155b670f144cc7a9d253 100644 (file)
@@ -357,6 +357,28 @@ NTSTATUS dcerpc_pull_ncacn_packet(TALLOC_CTX *mem_ctx,
        return NT_STATUS_OK;
 }
 
+/*******************************************************************
+ ********************************************************************/
+
+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