diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-02-09 15:15:56 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-02-18 07:28:07 +0100 |
commit | 2d02b5e9392c13e9dbabd167809a55487e776f47 (patch) | |
tree | 4f8b956eb0deb019aaae436725ff59d791aacb5c /source3 | |
parent | a5c1e6e647e556a971370ffde1fd5c5073f1bf60 (diff) | |
download | samba-2d02b5e9392c13e9dbabd167809a55487e776f47.tar.gz samba-2d02b5e9392c13e9dbabd167809a55487e776f47.tar.bz2 samba-2d02b5e9392c13e9dbabd167809a55487e776f47.zip |
s3-secrets: Remove unused secrets_delete_machine_password()
Found by callcatcher.
Andrew Bartlett
Diffstat (limited to 'source3')
-rw-r--r-- | source3/include/secrets.h | 1 | ||||
-rw-r--r-- | source3/passdb/machine_account_secrets.c | 13 |
2 files changed, 0 insertions, 14 deletions
diff --git a/source3/include/secrets.h b/source3/include/secrets.h index 6cb2e0473e..81d6c68f3c 100644 --- a/source3/include/secrets.h +++ b/source3/include/secrets.h @@ -110,7 +110,6 @@ bool secrets_fetch_trusted_domain_password(const char *domain, char** pwd, struct dom_sid *sid, time_t *pass_last_set_time); bool secrets_store_trusted_domain_password(const char* domain, const char* pwd, const struct dom_sid *sid); -bool secrets_delete_machine_password(const char *domain); bool secrets_delete_machine_password_ex(const char *domain); bool secrets_delete_domain_sid(const char *domain); bool secrets_store_machine_password(const char *pass, const char *domain, enum netr_SchannelType sec_channel); diff --git a/source3/passdb/machine_account_secrets.c b/source3/passdb/machine_account_secrets.c index 4a6642eef7..8aaea10d8c 100644 --- a/source3/passdb/machine_account_secrets.c +++ b/source3/passdb/machine_account_secrets.c @@ -397,19 +397,6 @@ static bool secrets_delete_prev_machine_password(const char *domain) } /************************************************************************ - Routine to delete the plaintext machine account password and old - password if any -************************************************************************/ - -bool secrets_delete_machine_password(const char *domain) -{ - if (!secrets_delete_prev_machine_password(domain)) { - return false; - } - return secrets_delete(machine_password_keystr(domain)); -} - -/************************************************************************ Routine to delete the plaintext machine account password, old password, sec channel type and last change time from secrets database ************************************************************************/ |