summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-02-09 15:14:34 +1100
committerAndrew Bartlett <abartlet@samba.org>2012-02-18 09:01:15 +0100
commita431f80457892f3c8be8316b68480bb08b5843b4 (patch)
treee0e1eb4d525d9ea1c439ea560002952f1ee1093d
parent2d02b5e9392c13e9dbabd167809a55487e776f47 (diff)
downloadsamba-a431f80457892f3c8be8316b68480bb08b5843b4.tar.gz
samba-a431f80457892f3c8be8316b68480bb08b5843b4.tar.bz2
samba-a431f80457892f3c8be8316b68480bb08b5843b4.zip
s3-secrets: Remove unused secrets_delete_generic()
Found by callcatcher. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Sat Feb 18 09:01:15 CET 2012 on sn-devel-104
-rw-r--r--source3/include/secrets.h1
-rw-r--r--source3/passdb/secrets.c16
2 files changed, 0 insertions, 17 deletions
diff --git a/source3/include/secrets.h b/source3/include/secrets.h
index 81d6c68f3c..5b778d11e2 100644
--- a/source3/include/secrets.h
+++ b/source3/include/secrets.h
@@ -125,7 +125,6 @@ bool secrets_fetch_afs_key(const char *cell, struct afs_key *result);
void secrets_fetch_ipc_userpass(char **username, char **domain, char **password);
bool secrets_store_generic(const char *owner, const char *key, const char *secret);
char *secrets_fetch_generic(const char *owner, const char *key);
-bool secrets_delete_generic(const char *owner, const char *key);
/* The following definitions come from passdb/secrets_lsa.c */
NTSTATUS lsa_secret_get(TALLOC_CTX *mem_ctx,
diff --git a/source3/passdb/secrets.c b/source3/passdb/secrets.c
index bd6be353cd..94e514d218 100644
--- a/source3/passdb/secrets.c
+++ b/source3/passdb/secrets.c
@@ -499,22 +499,6 @@ bool secrets_store_generic(const char *owner, const char *key, const char *secre
return ret;
}
-bool secrets_delete_generic(const char *owner, const char *key)
-{
- char *tdbkey = NULL;
- bool ret;
-
- if (asprintf(&tdbkey, "SECRETS/GENERIC/%s/%s", owner, key) < 0) {
- DEBUG(0, ("asprintf failed!\n"));
- return False;
- }
-
- ret = secrets_delete(tdbkey);
-
- SAFE_FREE(tdbkey);
- return ret;
-}
-
/*******************************************************************
Find the ldap password.
******************************************************************/