--- embedaddon/sudo/plugins/sudoers/auth/afs.c 2012/02/21 16:23:02 1.1.1.1 +++ embedaddon/sudo/plugins/sudoers/auth/afs.c 2013/07/22 10:46:12 1.1.1.3 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1999, 2001-2005, 2007, 2010-2011 + * Copyright (c) 1999, 2001-2005, 2007, 2010-2012 * Todd C. Miller * * Permission to use, copy, modify, and distribute this software for any @@ -21,7 +21,6 @@ #include -#include #include #include #ifdef STDC_HEADERS @@ -50,10 +49,11 @@ #include "sudo_auth.h" int -afs_verify(struct passwd *pw, char *pass, sudo_auth *auth) +sudo_afs_verify(struct passwd *pw, char *pass, sudo_auth *auth) { struct ktc_encryptionKey afs_key; struct ktc_token afs_token; + debug_decl(sudo_afs_verify, SUDO_DEBUG_AUTH) /* Try to just check the password */ ka_StringToKey(pass, NULL, &afs_key); @@ -64,7 +64,7 @@ afs_verify(struct passwd *pw, char *pass, sudo_auth *a 0, /* lifetime */ &afs_token, /* token */ 0) == 0) /* new */ - return AUTH_SUCCESS; + debug_return_int(AUTH_SUCCESS); /* Fall back on old method XXX - needed? */ setpag(); @@ -77,7 +77,7 @@ afs_verify(struct passwd *pw, char *pass, sudo_auth *a NULL, /* expiration ptr (unused) */ 0, /* spare */ NULL) == 0) /* reason */ - return AUTH_SUCCESS; + debug_return_int(AUTH_SUCCESS); - return AUTH_FAILURE; + debug_return_int(AUTH_FAILURE); }