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