diff options
author | Volker Lendecke <vl@samba.org> | 2010-04-11 12:37:48 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-04-11 13:53:19 +0200 |
commit | a2d1e5e0f77220f912cacb821a928c5e5a952e47 (patch) | |
tree | 331f629b2d1cad0240281de95f797ebcde9f67d1 /source3/auth/auth_util.c | |
parent | bc619586f210dad5ed01859e21b5f657a34052bf (diff) | |
download | samba-a2d1e5e0f77220f912cacb821a928c5e5a952e47.tar.gz samba-a2d1e5e0f77220f912cacb821a928c5e5a952e47.tar.bz2 samba-a2d1e5e0f77220f912cacb821a928c5e5a952e47.zip |
s3: Remove the make_auth_methods routine
This was just TALLOC_ZERO_P
Diffstat (limited to 'source3/auth/auth_util.c')
-rw-r--r-- | source3/auth/auth_util.c | 26 |
1 files changed, 0 insertions, 26 deletions
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. * |