s3-dcerpc: add dcerpc_pull_dcerpc_auth().
authorGünther Deschner <gd@samba.org>
Wed, 1 Apr 2009 21:39:20 +0000 (23:39 +0200)
committerSimo Sorce <idra@samba.org>
Thu, 8 Jul 2010 04:52:34 +0000 (00:52 -0400)
Guenther

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

index da1219ed61b7cc4666d6eb1a7499b0d2d05b2b09..76744c4302260c050b8378c4594fdf2c7228a74c 100644 (file)
@@ -401,6 +401,28 @@ static NTSTATUS dcerpc_push_schannel_bind(TALLOC_CTX *mem_ctx,
        return NT_STATUS_OK;
 }
 
+/*******************************************************************
+ ********************************************************************/
+
+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