From a2d1e5e0f77220f912cacb821a928c5e5a952e47 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 11 Apr 2010 12:37:48 +0200 Subject: s3: Remove the make_auth_methods routine This was just TALLOC_ZERO_P --- source3/auth/auth_util.c | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'source3/auth/auth_util.c') diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c index ab2ffc259e..1362956e0a 100644 --- a/source3/auth/auth_util.c +++ b/source3/auth/auth_util.c @@ -2128,32 +2128,6 @@ void free_user_info(struct auth_usersupplied_info **user_info) SAFE_FREE(*user_info); } -/*************************************************************************** - Make an auth_methods struct -***************************************************************************/ - -bool make_auth_methods(struct auth_context *auth_context, auth_methods **auth_method) -{ - if (!auth_context) { - smb_panic("no auth_context supplied to " - "make_auth_methods()!\n"); - } - - if (!auth_method) { - smb_panic("make_auth_methods: pointer to auth_method pointer " - "is NULL!\n"); - } - - *auth_method = TALLOC_P(auth_context, auth_methods); - if (!*auth_method) { - DEBUG(0,("make_auth_method: malloc failed!\n")); - return False; - } - ZERO_STRUCTP(*auth_method); - - return True; -} - /** * Verify whether or not given domain is trusted. * -- cgit