diff options
author | Volker Lendecke <vl@samba.org> | 2008-07-20 11:04:31 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2008-07-20 17:37:11 +0200 |
commit | e0be03d8d5006f92ed479b84cd30ebfe510fa68a (patch) | |
tree | 4e0571cc682b35db841407eb77983a40459167bc /source3/rpcclient | |
parent | 1335da2a7cc639310e5d389e8e8dbe67c4e7ca25 (diff) | |
download | samba-e0be03d8d5006f92ed479b84cd30ebfe510fa68a.tar.gz samba-e0be03d8d5006f92ed479b84cd30ebfe510fa68a.tar.bz2 samba-e0be03d8d5006f92ed479b84cd30ebfe510fa68a.zip |
Refactoring: Change calling conventions for cli_rpc_pipe_open_ntlmssp
Pass in ndr_syntax_id instead of pipe_idx, return NTSTATUS
(This used to be commit a13f0599551609394904b99e4014d580ec65c506)
Diffstat (limited to 'source3/rpcclient')
-rw-r--r-- | source3/rpcclient/rpcclient.c | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/source3/rpcclient/rpcclient.c b/source3/rpcclient/rpcclient.c index ff98a24fba..eac96d3957 100644 --- a/source3/rpcclient/rpcclient.c +++ b/source3/rpcclient/rpcclient.c @@ -586,22 +586,24 @@ static NTSTATUS do_cmd(struct cli_state *cli, &cmd_entry->rpc_pipe); break; case PIPE_AUTH_TYPE_SPNEGO_NTLMSSP: - cmd_entry->rpc_pipe = cli_rpc_pipe_open_spnego_ntlmssp(cli, - cmd_entry->pipe_idx, - pipe_default_auth_level, - lp_workgroup(), - get_cmdline_auth_info_username(), - get_cmdline_auth_info_password(), - &ntresult); + ntresult = cli_rpc_pipe_open_spnego_ntlmssp( + cli, + cli_get_iface(cmd_entry->pipe_idx), + pipe_default_auth_level, + lp_workgroup(), + get_cmdline_auth_info_username(), + get_cmdline_auth_info_password(), + &cmd_entry->rpc_pipe); break; case PIPE_AUTH_TYPE_NTLMSSP: - cmd_entry->rpc_pipe = cli_rpc_pipe_open_ntlmssp(cli, - cmd_entry->pipe_idx, - pipe_default_auth_level, - lp_workgroup(), - get_cmdline_auth_info_username(), - get_cmdline_auth_info_password(), - &ntresult); + ntresult = cli_rpc_pipe_open_ntlmssp( + cli, + cli_get_iface(cmd_entry->pipe_idx), + pipe_default_auth_level, + lp_workgroup(), + get_cmdline_auth_info_username(), + get_cmdline_auth_info_password(), + &cmd_entry->rpc_pipe); break; case PIPE_AUTH_TYPE_SCHANNEL: cmd_entry->rpc_pipe = cli_rpc_pipe_open_schannel(cli, |