netlogon_creds_cli: Remove unused code
authorVolker Lendecke <vl@samba.org>
Tue, 5 Sep 2017 11:37:56 +0000 (13:37 +0200)
committerVolker Lendecke <vl@samba.org>
Mon, 25 Sep 2017 07:43:12 +0000 (09:43 +0200)
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>
libcli/auth/netlogon_creds_cli.c
libcli/auth/netlogon_creds_cli.h

index f95c97bafb79a103bb13f39864be8eec6afd93b6..bfa9fa0c2c4c37a8bfd7ad279a731411dd98d605 100644 (file)
@@ -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)
index 8f473372760874f96cd4bc86b870f8f1ff6ac526..1e7df6600cbacae410ff36aed9a648db00ef5d19 100644 (file)
@@ -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,