diff options
author | Andrew Bartlett <abartlet@samba.org> | 2011-07-12 16:36:34 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2011-07-14 15:06:45 +1000 |
commit | 6f4c0937298bee0e4af4dff9228e8469303516b4 (patch) | |
tree | f335d4dc2f969f6ce67f18a052fb03fb5f6f86b1 /source3 | |
parent | 0e4a4c8b19c9962fc8cbdb407ccd7e9a3e7bc536 (diff) | |
download | samba-6f4c0937298bee0e4af4dff9228e8469303516b4.tar.gz samba-6f4c0937298bee0e4af4dff9228e8469303516b4.tar.bz2 samba-6f4c0937298bee0e4af4dff9228e8469303516b4.zip |
s3-lib Remove unused get_cmdline_auth_info_copy
Diffstat (limited to 'source3')
-rw-r--r-- | source3/include/proto.h | 2 | ||||
-rw-r--r-- | source3/lib/util_cmdline.c | 24 |
2 files changed, 0 insertions, 26 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h index c3e680d8b6..010992de48 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -637,8 +637,6 @@ void set_cmdline_auth_info_use_machine_account(struct user_auth_info *auth_info) bool get_cmdline_auth_info_got_pass(const struct user_auth_info *auth_info); bool get_cmdline_auth_info_smb_encrypt(const struct user_auth_info *auth_info); bool get_cmdline_auth_info_use_machine_account(const struct user_auth_info *auth_info); -struct user_auth_info *get_cmdline_auth_info_copy(TALLOC_CTX *mem_ctx, - const struct user_auth_info *info); bool set_cmdline_auth_info_machine_account_creds(struct user_auth_info *auth_info); void set_cmdline_auth_info_getpass(struct user_auth_info *auth_info); diff --git a/source3/lib/util_cmdline.c b/source3/lib/util_cmdline.c index 39f136821c..81b158e438 100644 --- a/source3/lib/util_cmdline.c +++ b/source3/lib/util_cmdline.c @@ -190,30 +190,6 @@ bool get_cmdline_auth_info_use_machine_account(const struct user_auth_info *auth return auth_info->use_machine_account; } -struct user_auth_info *get_cmdline_auth_info_copy(TALLOC_CTX *mem_ctx, - const struct user_auth_info *src) -{ - struct user_auth_info *result; - - result = user_auth_info_init(mem_ctx); - if (result == NULL) { - return NULL; - } - - *result = *src; - - result->username = talloc_strdup( - result, get_cmdline_auth_info_username(src)); - result->password = talloc_strdup( - result, get_cmdline_auth_info_password(src)); - if ((result->username == NULL) || (result->password == NULL)) { - TALLOC_FREE(result); - return NULL; - } - - return result; -} - bool set_cmdline_auth_info_machine_account_creds(struct user_auth_info *auth_info) { char *pass = NULL; |