diff options
Diffstat (limited to 'lib/libpam/modules/pam_kerberosIV/klogin.c')
-rw-r--r-- | lib/libpam/modules/pam_kerberosIV/klogin.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/libpam/modules/pam_kerberosIV/klogin.c b/lib/libpam/modules/pam_kerberosIV/klogin.c index ae51f74..0743e86 100644 --- a/lib/libpam/modules/pam_kerberosIV/klogin.c +++ b/lib/libpam/modules/pam_kerberosIV/klogin.c @@ -52,6 +52,8 @@ static const char sccsid[] = "@(#)klogin.c 8.3 (Berkeley) 4/2/94"; #include <string.h> #include <unistd.h> +#include "klogin.h" + #define INITIAL_TICKET "krbtgt" #define VERIFY_SERVICE "rcmd" @@ -65,14 +67,11 @@ extern char *krbtkfile_env; * 1 if Kerberos failed (try local password in login) */ int -klogin(pw, instance, localhost, password) - struct passwd *pw; - char *instance, *localhost, *password; +klogin(struct passwd *pw, char *instance, char *localhost, const char *password) { int kerror; char realm[REALM_SZ], savehost[MAXHOSTNAMELEN]; char tkt_location[MAXPATHLEN]; - char *krb_get_phost(); extern int noticketsdontcomplain; #ifdef KLOGIN_PARANOID |