summaryrefslogtreecommitdiffstats
path: root/src/clients
diff options
context:
space:
mode:
authorJohn Carr <jfc@mit.edu>1991-12-06 14:09:30 +0000
committerJohn Carr <jfc@mit.edu>1991-12-06 14:09:30 +0000
commit971f569cd885457ff22e2df5fb7b2560375f8101 (patch)
treec49b0c901ccbb9245c4f7d9df3e99cd53338029d /src/clients
parentae5ad7d5ad644bf9102d720b2279da3359b70d2d (diff)
downloadkrb5-971f569cd885457ff22e2df5fb7b2560375f8101.tar.gz
krb5-971f569cd885457ff22e2df5fb7b2560375f8101.tar.xz
krb5-971f569cd885457ff22e2df5fb7b2560375f8101.zip
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
Diffstat (limited to 'src/clients')
-rw-r--r--src/clients/kinit/kinit.c10
1 files changed, 9 insertions, 1 deletions
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 <ctype.h> /* for isdigit */
+
+static time_t
convtime(p)
char *p;
{