diff options
author | Volker Lendecke <vl@samba.org> | 2017-09-05 13:37:56 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2017-09-25 09:43:12 +0200 |
commit | b92b10d7c3468c09f15090a747b2ac432682d746 (patch) | |
tree | c3298994fd51e26d0e5a236d14acaf2f93668f03 /libcli | |
parent | fa53617542361191c2da7dd9a761cd17af03a312 (diff) | |
download | samba-b92b10d7c3468c09f15090a747b2ac432682d746.tar.gz |
netlogon_creds_cli: Remove unused code
According to metze this was meant for test code that never materialized
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'libcli')
-rw-r--r-- | libcli/auth/netlogon_creds_cli.c | 41 | ||||
-rw-r--r-- | libcli/auth/netlogon_creds_cli.h | 10 |
2 files changed, 0 insertions, 51 deletions
diff --git a/libcli/auth/netlogon_creds_cli.c b/libcli/auth/netlogon_creds_cli.c index f95c97bafb7..bfa9fa0c2c4 100644 --- a/libcli/auth/netlogon_creds_cli.c +++ b/libcli/auth/netlogon_creds_cli.c @@ -447,47 +447,6 @@ NTSTATUS netlogon_creds_cli_context_global(struct loadparm_context *lp_ctx, return NT_STATUS_OK; } -NTSTATUS netlogon_creds_cli_context_tmp(const char *client_computer, - const char *client_account, - enum netr_SchannelType type, - uint32_t proposed_flags, - uint32_t required_flags, - enum dcerpc_AuthLevel auth_level, - const char *server_computer, - const char *server_netbios_domain, - TALLOC_CTX *mem_ctx, - struct netlogon_creds_cli_context **_context) -{ - NTSTATUS status; - struct netlogon_creds_cli_context *context = NULL; - - *_context = NULL; - - status = netlogon_creds_cli_context_common(client_computer, - client_account, - type, - auth_level, - proposed_flags, - required_flags, - server_computer, - server_netbios_domain, - "", - mem_ctx, - &context); - if (!NT_STATUS_IS_OK(status)) { - return status; - } - - context->db.ctx = db_open_rbt(context); - if (context->db.ctx == NULL) { - talloc_free(context); - return NT_STATUS_NO_MEMORY; - } - - *_context = context; - return NT_STATUS_OK; -} - char *netlogon_creds_cli_debug_string( const struct netlogon_creds_cli_context *context, TALLOC_CTX *mem_ctx) diff --git a/libcli/auth/netlogon_creds_cli.h b/libcli/auth/netlogon_creds_cli.h index 8f473372760..1e7df6600cb 100644 --- a/libcli/auth/netlogon_creds_cli.h +++ b/libcli/auth/netlogon_creds_cli.h @@ -43,16 +43,6 @@ NTSTATUS netlogon_creds_cli_context_global(struct loadparm_context *lp_ctx, const char *server_dns_domain, TALLOC_CTX *mem_ctx, struct netlogon_creds_cli_context **_context); -NTSTATUS netlogon_creds_cli_context_tmp(const char *client_computer, - const char *client_account, - enum netr_SchannelType type, - uint32_t proposed_flags, - uint32_t required_flags, - enum dcerpc_AuthLevel auth_level, - const char *server_computer, - const char *server_netbios_domain, - TALLOC_CTX *mem_ctx, - struct netlogon_creds_cli_context **_context); char *netlogon_creds_cli_debug_string( const struct netlogon_creds_cli_context *context, |