summaryrefslogtreecommitdiffstats
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2014-09-26 03:39:13 +0200
committerAndrew Bartlett <abartlet@samba.org>2014-10-17 12:57:07 +0200
commitbbad2fed7cda09f5a7d7006ada6382d29f1c1a86 (patch)
tree03396a7bc37541d0242c3c864dca2f888f06acfb /source3
parent0e2b25562241404db70d0bba018998078361976d (diff)
s3:libsmb: remove unused cli_set_username() function
Change-Id: Ib432b4ff66f966de9e733e01de6de2f486c0c728 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/include/client.h3
-rw-r--r--source3/libsmb/clientgen.c14
-rw-r--r--source3/libsmb/proto.h1
3 files changed, 0 insertions, 18 deletions
diff --git a/source3/include/client.h b/source3/include/client.h
index 17004aae18..25c44ba64d 100644
--- a/source3/include/client.h
+++ b/source3/include/client.h
@@ -52,9 +52,6 @@ struct cli_state {
NTSTATUS raw_status; /* maybe via NT_STATUS_DOS() */
bool map_dos_errors;
- /* The credentials used to open the cli_state connection. */
- char *user_name;
-
/*
* The following strings are the
* ones returned by the server if
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c
index 06d3e6cec1..3b737d44ca 100644
--- a/source3/libsmb/clientgen.c
+++ b/source3/libsmb/clientgen.c
@@ -66,20 +66,6 @@ bool cli_set_backup_intent(struct cli_state *cli, bool flag)
}
/****************************************************************************
- Initialize user for spoolss use ONLY
-****************************************************************************/
-
-NTSTATUS cli_set_username(struct cli_state *cli, const char *username)
-{
- TALLOC_FREE(cli->user_name);
- cli->user_name = talloc_strdup(cli, username ? username : "");
- if (cli->user_name == NULL) {
- return NT_STATUS_NO_MEMORY;
- }
- return NT_STATUS_OK;
-}
-
-/****************************************************************************
Initialise a client structure. Always returns a talloc'ed struct.
Set the signing state (used from the command line).
****************************************************************************/
diff --git a/source3/libsmb/proto.h b/source3/libsmb/proto.h
index cb979a9c54..f392a35f4c 100644
--- a/source3/libsmb/proto.h
+++ b/source3/libsmb/proto.h
@@ -161,7 +161,6 @@ int cli_set_message(char *buf,int num_words,int num_bytes,bool zero);
unsigned int cli_set_timeout(struct cli_state *cli, unsigned int timeout);
bool cli_set_backup_intent(struct cli_state *cli, bool flag);
void cli_setup_packet_buf(struct cli_state *cli, char *buf);
-NTSTATUS cli_set_username(struct cli_state *cli, const char *username);
extern struct GUID cli_state_client_guid;
struct cli_state *cli_state_create(TALLOC_CTX *mem_ctx,
int fd,