Print "password incorrect" if the password is incorrect.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2196
dc483132-0cff-0310-8789-
dd5450dbe970
extern int optind;
extern char *optarg;
+static time_t convtime();
+
krb5_error_code
krb5_parse_lifetime (time, len)
char *time;
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);
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/
-time_t
+#include <ctype.h> /* for isdigit */
+
+static time_t
convtime(p)
char *p;
{