From: John Carr Date: Fri, 6 Dec 1991 14:09:30 +0000 (+0000) Subject: Declare convtime() static. X-Git-Tag: krb5-1.0-beta2~266 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=971f569cd885457ff22e2df5fb7b2560375f8101;p=krb5.git Declare convtime() static. Print "password incorrect" if the password is incorrect. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2196 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/clients/kinit/kinit.c b/src/clients/kinit/kinit.c index 024d42abd..50455a5a6 100644 --- a/src/clients/kinit/kinit.c +++ b/src/clients/kinit/kinit.c @@ -45,6 +45,8 @@ static char rcsid_kinit_c [] = extern int optind; extern char *optarg; +static time_t convtime(); + krb5_error_code krb5_parse_lifetime (time, len) char *time; @@ -190,6 +192,10 @@ main(argc, argv) ccache, &my_creds); krb5_free_principal(server); + if (code == KRB5KRB_AP_ERR_BAD_INTEGRITY) { + fprintf (stderr, "%s: Password incorrect\n", argv[0]); + exit(1); + } if (code != 0) { com_err (argv[0], code, "while getting initial credentials"); exit(1); @@ -219,7 +225,9 @@ main(argc, argv) * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ -time_t +#include /* for isdigit */ + +static time_t convtime(p) char *p; {