add -z' and -G' options

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6713 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1999-08-04 17:03:54 +00:00
parent 9f0b8ec3de
commit 5bbde2428f

View File

@@ -739,8 +739,12 @@ struct getargs args[] = {
NULL },
{ "encrypt", 'x', arg_flag, &do_encrypt, "Encrypt connection",
NULL },
{ "encrypt", 'z', arg_negative_flag, &do_encrypt,
"Don't encrypt connection", NULL },
{ "forward", 'f', arg_flag, &do_forward, "Forward credentials",
NULL },
{ "forward", 'G', arg_negative_flag,&do_forward, "Forward credentials",
NULL },
{ "forwardable", 'F', arg_flag, &do_forwardable,
"Forward forwardable credentials", NULL },
{ "unique", 'u', arg_flag, &do_unique_tkfile,
@@ -803,14 +807,20 @@ main(int argc, char **argv)
if (status)
errx(1, "krb5_init_context failed: %u", status);
do_forwardable=krb5_config_get_bool (context, NULL,
"libdefaults", "forwardable", NULL);
do_forwardable = krb5_config_get_bool (context, NULL,
"libdefaults",
"forwardable",
NULL);
do_forward=krb5_config_get_bool (context, NULL,
"libdefaults", "forward", NULL);
do_forward = krb5_config_get_bool (context, NULL,
"libdefaults",
"forward",
NULL);
do_encrypt=krb5_config_get_bool (context, NULL,
"libdefaults", "encrypt", NULL);
do_encrypt = krb5_config_get_bool (context, NULL,
"libdefaults",
"encrypt",
NULL);
if (getarg (args, sizeof(args) / sizeof(args[0]), argc, argv,
&optind))