summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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.
******************************************************************/