From 971f569cd885457ff22e2df5fb7b2560375f8101 Mon Sep 17 00:00:00 2001 From: John Carr Date: Fri, 6 Dec 1991 14:09:30 +0000 Subject: [PATCH] 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 --- src/clients/kinit/kinit.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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; { -- 2.26.2