Add `-r' flag.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2417 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
1997-07-17 23:03:19 +00:00
parent 85c4c1776d
commit c983eec825

View File

@@ -65,8 +65,9 @@ main (int argc, char **argv)
}options;
set_progname (argv[0]);
memset(&cred, 0, sizeof(cred));
options.i = 0;
while ((c = getopt (argc, argv, "fp")) != EOF) {
while ((c = getopt (argc, argv, "frp")) != EOF) {
switch (c) {
case 'f':
options.f.forwardable = 1;
@@ -74,6 +75,10 @@ main (int argc, char **argv)
case 'p':
preauth = 0;
break;
case 'r':
options.f.renewable = 1;
cred.times.renew_till = 1 << 30;
break;
default:
usage ();
}
@@ -121,7 +126,6 @@ main (int argc, char **argv)
errx (1, "krb5_cc_initialize: %s",
krb5_get_err_text(context, ret));
memset(&cred, 0, sizeof(cred));
cred.client = principal;
cred.times.endtime = 0;