summaryrefslogtreecommitdiff
path: root/source3/rpc_client
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2017-09-06 17:23:47 +0200
committerAndrew Bartlett <abartlet@samba.org>2017-09-16 08:36:17 +0200
commit7a3d1b5a6fcbbd6d12cb3568a7ac62e50c056a5b (patch)
tree99638237daa1a56063760f7136179168862c1386 /source3/rpc_client
parentdb92fd6a5038ec5ec4ffbf93ac3a44948413f7d8 (diff)
downloadsamba-7a3d1b5a6fcbbd6d12cb3568a7ac62e50c056a5b.tar.gz
cli_netlogon: Rename rpccli_create_netlogon_creds_with_creds
This creates a context with access to a credentials, not credentials Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source3/rpc_client')
-rw-r--r--source3/rpc_client/cli_netlogon.c11
-rw-r--r--source3/rpc_client/cli_netlogon.h11
-rw-r--r--source3/rpc_client/cli_pipe_schannel.c10
3 files changed, 17 insertions, 15 deletions
diff --git a/source3/rpc_client/cli_netlogon.c b/source3/rpc_client/cli_netlogon.c
index 9d245b8be7d..75234a6799c 100644
--- a/source3/rpc_client/cli_netlogon.c
+++ b/source3/rpc_client/cli_netlogon.c
@@ -127,11 +127,12 @@ static NTSTATUS rpccli_create_netlogon_creds(
return NT_STATUS_OK;
}
-NTSTATUS rpccli_create_netlogon_creds_with_creds(struct cli_credentials *creds,
- const char *server_computer,
- struct messaging_context *msg_ctx,
- TALLOC_CTX *mem_ctx,
- struct netlogon_creds_cli_context **netlogon_creds)
+NTSTATUS rpccli_create_netlogon_creds_ctx(
+ struct cli_credentials *creds,
+ const char *server_computer,
+ struct messaging_context *msg_ctx,
+ TALLOC_CTX *mem_ctx,
+ struct netlogon_creds_cli_context **netlogon_creds)
{
enum netr_SchannelType sec_chan_type;
const char *server_netbios_domain;
diff --git a/source3/rpc_client/cli_netlogon.h b/source3/rpc_client/cli_netlogon.h
index a6fcf1cec4f..62cdc63e77e 100644
--- a/source3/rpc_client/cli_netlogon.h
+++ b/source3/rpc_client/cli_netlogon.h
@@ -33,11 +33,12 @@ struct dcerpc_binding_handle;
/* The following definitions come from rpc_client/cli_netlogon.c */
NTSTATUS rpccli_pre_open_netlogon_creds(void);
-NTSTATUS rpccli_create_netlogon_creds_with_creds(struct cli_credentials *creds,
- const char *server_computer,
- struct messaging_context *msg_ctx,
- TALLOC_CTX *mem_ctx,
- struct netlogon_creds_cli_context **netlogon_creds);
+NTSTATUS rpccli_create_netlogon_creds_ctx(
+ struct cli_credentials *creds,
+ const char *server_computer,
+ struct messaging_context *msg_ctx,
+ TALLOC_CTX *mem_ctx,
+ struct netlogon_creds_cli_context **netlogon_creds);
NTSTATUS rpccli_setup_netlogon_creds_with_creds(struct cli_state *cli,
enum dcerpc_transport_t transport,
struct netlogon_creds_cli_context *netlogon_creds,
diff --git a/source3/rpc_client/cli_pipe_schannel.c b/source3/rpc_client/cli_pipe_schannel.c
index 1790247e04e..0a1dd79b986 100644
--- a/source3/rpc_client/cli_pipe_schannel.c
+++ b/source3/rpc_client/cli_pipe_schannel.c
@@ -62,11 +62,11 @@ NTSTATUS cli_rpc_pipe_open_schannel(struct cli_state *cli,
return status;
}
- status = rpccli_create_netlogon_creds_with_creds(cli_creds,
- dc_name,
- msg_ctx,
- frame,
- &netlogon_creds);
+ status = rpccli_create_netlogon_creds_ctx(cli_creds,
+ dc_name,
+ msg_ctx,
+ frame,
+ &netlogon_creds);
if (!NT_STATUS_IS_OK(status)) {
TALLOC_FREE(frame);
return status;