mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
s3-lib Remove unused get_cmdline_auth_info_copy
This commit is contained in:
parent
0e4a4c8b19
commit
6f4c093729
@ -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);
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user