From a054832f4fda4a158c1d0bf6fa2646bd5835aa2e Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Thu, 8 Jul 2010 11:36:03 -0400 Subject: s3-dcerpc: make dceprc_push_dcerpc_auth public --- source3/include/proto.h | 7 +++++++ source3/rpc_client/cli_pipe.c | 15 ++++++++------- 2 files changed, 15 insertions(+), 7 deletions(-) (limited to 'source3') diff --git a/source3/include/proto.h b/source3/include/proto.h index 8ce2bf169c..4300d3fc6d 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -4847,6 +4847,13 @@ NTSTATUS dcerpc_pull_ncacn_packet(TALLOC_CTX *mem_ctx, NTSTATUS dcerpc_pull_ncacn_packet_header(TALLOC_CTX *mem_ctx, const DATA_BLOB *blob, struct ncacn_packet_header *r); +NTSTATUS dcerpc_push_dcerpc_auth(TALLOC_CTX *mem_ctx, + enum dcerpc_AuthType auth_type, + enum dcerpc_AuthLevel auth_level, + uint8_t auth_pad_length, + uint32_t auth_context_id, + const DATA_BLOB *credentials, + DATA_BLOB *blob); struct tevent_req *rpc_pipe_bind_send(TALLOC_CTX *mem_ctx, struct event_context *ev, struct rpc_pipe_client *cli, diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c index 3d53d2ecd5..b3aaf9df3e 100644 --- a/source3/rpc_client/cli_pipe.c +++ b/source3/rpc_client/cli_pipe.c @@ -1754,15 +1754,16 @@ static NTSTATUS rpc_api_pipe_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx, } /******************************************************************* + Creates an auth_data blob. ********************************************************************/ -static NTSTATUS dcerpc_push_dcerpc_auth(TALLOC_CTX *mem_ctx, - enum dcerpc_AuthType auth_type, - enum dcerpc_AuthLevel auth_level, - uint8_t auth_pad_length, - uint32_t auth_context_id, - const DATA_BLOB *credentials, - DATA_BLOB *blob) +NTSTATUS dcerpc_push_dcerpc_auth(TALLOC_CTX *mem_ctx, + enum dcerpc_AuthType auth_type, + enum dcerpc_AuthLevel auth_level, + uint8_t auth_pad_length, + uint32_t auth_context_id, + const DATA_BLOB *credentials, + DATA_BLOB *blob) { struct dcerpc_auth r; enum ndr_err_code ndr_err; -- cgit