From 1a9957cf23b3635f60dd22485988fe47d7154f6c Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Tue, 2 Jun 2009 15:26:13 -0400 Subject: 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 --- server/providers/proxy.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'server/providers') diff --git a/server/providers/proxy.c b/server/providers/proxy.c index 4acec90af..3252a7455 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) -- cgit