summaryrefslogtreecommitdiffstats
path: root/libcli/auth
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2013-10-17 19:17:12 +0200
committerStefan Metzmacher <metze@samba.org>2014-01-07 12:47:16 +0100
commit3d45d4dc3c69557bf1d1fe6d4a880ad74a2a41f1 (patch)
tree0a95d63ebb9af48913dfc59a50b19802b7b1b021 /libcli/auth
parentc0761c3eae34175d772476006caf5caad68bd8c6 (diff)
downloadsamba-3d45d4dc3c69557bf1d1fe6d4a880ad74a2a41f1.tar.gz
samba-3d45d4dc3c69557bf1d1fe6d4a880ad74a2a41f1.tar.xz
samba-3d45d4dc3c69557bf1d1fe6d4a880ad74a2a41f1.zip
libcli/auth: remove unused netlogon_creds_cli_context_copy()
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'libcli/auth')
-rw-r--r--libcli/auth/netlogon_creds_cli.c47
-rw-r--r--libcli/auth/netlogon_creds_cli.h4
2 files changed, 0 insertions, 51 deletions
diff --git a/libcli/auth/netlogon_creds_cli.c b/libcli/auth/netlogon_creds_cli.c
index 6590b21ec1a..17240640ca8 100644
--- a/libcli/auth/netlogon_creds_cli.c
+++ b/libcli/auth/netlogon_creds_cli.c
@@ -488,53 +488,6 @@ NTSTATUS netlogon_creds_cli_context_tmp(const char *client_computer,
return NT_STATUS_OK;
}
-NTSTATUS netlogon_creds_cli_context_copy(
- const struct netlogon_creds_cli_context *src,
- TALLOC_CTX *mem_ctx,
- struct netlogon_creds_cli_context **_dst)
-{
- struct netlogon_creds_cli_context *dst;
-
- dst = talloc_zero(mem_ctx, struct netlogon_creds_cli_context);
- if (dst == NULL) {
- return NT_STATUS_NO_MEMORY;
- }
-
- *dst = *src;
-
- dst->client.computer = talloc_strdup(dst, src->client.computer);
- if (dst->client.computer == NULL) {
- TALLOC_FREE(dst);
- return NT_STATUS_NO_MEMORY;
- }
- dst->client.account = talloc_strdup(dst, src->client.account);
- if (dst->client.account == NULL) {
- TALLOC_FREE(dst);
- return NT_STATUS_NO_MEMORY;
- }
- dst->server.computer = talloc_strdup(dst, src->server.computer);
- if (dst->server.computer == NULL) {
- TALLOC_FREE(dst);
- return NT_STATUS_NO_MEMORY;
- }
- dst->server.netbios_domain = talloc_strdup(dst, src->server.netbios_domain);
- if (dst->server.netbios_domain == NULL) {
- TALLOC_FREE(dst);
- return NT_STATUS_NO_MEMORY;
- }
-
- dst->db.key_name = talloc_strdup(dst, src->db.key_name);
- if (dst->db.key_name == NULL) {
- TALLOC_FREE(dst);
- return NT_STATUS_NO_MEMORY;
- }
-
- dst->db.key_data = string_term_tdb_data(dst->db.key_name);
-
- *_dst = dst;
- return NT_STATUS_OK;
-}
-
enum dcerpc_AuthLevel netlogon_creds_cli_auth_level(
struct netlogon_creds_cli_context *context)
{
diff --git a/libcli/auth/netlogon_creds_cli.h b/libcli/auth/netlogon_creds_cli.h
index f8f2bef09e7..5bd8bd3b691 100644
--- a/libcli/auth/netlogon_creds_cli.h
+++ b/libcli/auth/netlogon_creds_cli.h
@@ -49,10 +49,6 @@ NTSTATUS netlogon_creds_cli_context_tmp(const char *client_computer,
const char *server_netbios_domain,
TALLOC_CTX *mem_ctx,
struct netlogon_creds_cli_context **_context);
-NTSTATUS netlogon_creds_cli_context_copy(
- const struct netlogon_creds_cli_context *src,
- TALLOC_CTX *mem_ctx,
- struct netlogon_creds_cli_context **_dst);
enum dcerpc_AuthLevel netlogon_creds_cli_auth_level(
struct netlogon_creds_cli_context *context);