summaryrefslogtreecommitdiff
path: root/server/providers
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2009-06-02 15:26:13 -0400
committerSimo Sorce <ssorce@redhat.com>2009-06-10 14:55:20 -0400
commit1a9957cf23b3635f60dd22485988fe47d7154f6c (patch)
tree3515e84d82392f6f12123787f08aadb201a5c46b /server/providers
parent1bbaf1a7cfde76bd81cab964c2eb9c91c6d8feba (diff)
downloadsssd-1a9957cf23b3635f60dd22485988fe47d7154f6c.tar.gz
sssd-1a9957cf23b3635f60dd22485988fe47d7154f6c.tar.bz2
sssd-1a9957cf23b3635f60dd22485988fe47d7154f6c.zip
Turn sssd_mem_takeover into sssd_mem_attach
The old function was not used anywhere, and this function uses better semantics, including not using void ** which gives strict aliasing problems. Also add a generic password destroy function
Diffstat (limited to 'server/providers')
-rw-r--r--server/providers/proxy.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/server/providers/proxy.c b/server/providers/proxy.c
index 4acec90a..3252a745 100644
--- a/server/providers/proxy.c
+++ b/server/providers/proxy.c
@@ -318,17 +318,6 @@ static void cache_pw_op(struct sysdb_req *req, void *pvt)
}
}
-static int password_destructor(void *memctx)
-{
- char *password = (char *)memctx;
- int i;
-
- /* zero out password */
- for (i = 0; password[i]; i++) password[i] = '\0';
-
- return 0;
-}
-
static void cache_password(struct be_req *req,
const char *username,
struct authtok_conv *ac)