diff options
author | Stefan Metzmacher <metze@samba.org> | 2010-08-12 14:39:42 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2010-08-16 14:30:17 +0200 |
commit | dd16d3b2d6cdaa036fe12c80b06d9963d20f5b27 (patch) | |
tree | 8482f66171af102c82bbe6563bfff8506baf88a4 /source3/rpc_client/cli_pipe.c | |
parent | d418f9f11abb5b5ed038acbaf5dbb2a656d39d87 (diff) | |
download | samba-dd16d3b2d6cdaa036fe12c80b06d9963d20f5b27.tar.gz samba-dd16d3b2d6cdaa036fe12c80b06d9963d20f5b27.tar.bz2 samba-dd16d3b2d6cdaa036fe12c80b06d9963d20f5b27.zip |
s3:rpc_client: remove unused rpc_pipe_open_local()
metze
Diffstat (limited to 'source3/rpc_client/cli_pipe.c')
-rw-r--r-- | source3/rpc_client/cli_pipe.c | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c index 18724a6fa8..6bfcad68e3 100644 --- a/source3/rpc_client/cli_pipe.c +++ b/source3/rpc_client/cli_pipe.c @@ -2808,71 +2808,6 @@ static NTSTATUS rpc_pipe_open_np(struct cli_state *cli, return NT_STATUS_OK; } -NTSTATUS rpc_pipe_open_local(TALLOC_CTX *mem_ctx, - struct rpc_cli_smbd_conn *conn, - const struct ndr_syntax_id *syntax, - struct rpc_pipe_client **presult) -{ - struct rpc_pipe_client *result; - struct pipe_auth_data *auth; - NTSTATUS status; - - result = talloc(mem_ctx, struct rpc_pipe_client); - if (result == NULL) { - return NT_STATUS_NO_MEMORY; - } - result->abstract_syntax = *syntax; - result->transfer_syntax = ndr_transfer_syntax; - result->dispatch = cli_do_rpc_ndr; - result->dispatch_send = cli_do_rpc_ndr_send; - result->dispatch_recv = cli_do_rpc_ndr_recv; - result->max_xmit_frag = RPC_MAX_PDU_FRAG_LEN; - result->max_recv_frag = RPC_MAX_PDU_FRAG_LEN; - - result->desthost = talloc_strdup(result, global_myname()); - result->srv_name_slash = talloc_asprintf_strupper_m( - result, "\\\\%s", global_myname()); - if ((result->desthost == NULL) || (result->srv_name_slash == NULL)) { - TALLOC_FREE(result); - return NT_STATUS_NO_MEMORY; - } - - status = rpc_transport_smbd_init(result, conn, syntax, - &result->transport); - if (!NT_STATUS_IS_OK(status)) { - DEBUG(1, ("rpc_transport_smbd_init failed: %s\n", - nt_errstr(status))); - TALLOC_FREE(result); - return status; - } - - status = rpccli_anon_bind_data(result, &auth); - if (!NT_STATUS_IS_OK(status)) { - DEBUG(1, ("rpccli_anon_bind_data failed: %s\n", - nt_errstr(status))); - TALLOC_FREE(result); - return status; - } - - status = rpc_pipe_bind(result, auth); - if (!NT_STATUS_IS_OK(status)) { - DEBUG(1, ("rpc_pipe_bind failed: %s\n", nt_errstr(status))); - TALLOC_FREE(result); - return status; - } - - result->transport->transport = NCACN_INTERNAL; - - result->binding_handle = rpccli_bh_create(result); - if (result->binding_handle == NULL) { - TALLOC_FREE(result); - return NT_STATUS_NO_MEMORY; - } - - *presult = result; - return NT_STATUS_OK; -} - /**************************************************************************** Open a pipe to a remote server. ****************************************************************************/ |