diff options
author | Simo Sorce <idra@samba.org> | 2010-07-08 11:36:03 -0400 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2010-07-08 18:38:56 -0400 |
commit | a054832f4fda4a158c1d0bf6fa2646bd5835aa2e (patch) | |
tree | 8360f2abb439a78a0fd79c0a62b9eb21f2634b10 | |
parent | aca60c29e7f890524ebd3a896a3e4f591b5830f6 (diff) | |
download | samba-a054832f4fda4a158c1d0bf6fa2646bd5835aa2e.tar.gz samba-a054832f4fda4a158c1d0bf6fa2646bd5835aa2e.tar.bz2 samba-a054832f4fda4a158c1d0bf6fa2646bd5835aa2e.zip |
s3-dcerpc: make dceprc_push_dcerpc_auth public
-rw-r--r-- | source3/include/proto.h | 7 | ||||
-rw-r--r-- | source3/rpc_client/cli_pipe.c | 15 |
2 files changed, 15 insertions, 7 deletions
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; |