add forward and forwardable toggle options, and call
set_forward_options() after parsing .telnetrc git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11291 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -634,6 +634,18 @@ static struct togglelist Togglelist[] = {
|
|||||||
EncryptDebug,
|
EncryptDebug,
|
||||||
0,
|
0,
|
||||||
"print encryption debugging information" },
|
"print encryption debugging information" },
|
||||||
|
#endif
|
||||||
|
#if defined(KRB5)
|
||||||
|
{ "forward",
|
||||||
|
"credentials forwarding",
|
||||||
|
kerberos5_set_forward,
|
||||||
|
0,
|
||||||
|
"forward credentials" },
|
||||||
|
{ "forwardable",
|
||||||
|
"forwardable flag of forwarded credentials",
|
||||||
|
kerberos5_set_forwardable,
|
||||||
|
0,
|
||||||
|
"forward forwardable credentials" },
|
||||||
#endif
|
#endif
|
||||||
{ "skiprc",
|
{ "skiprc",
|
||||||
"don't read ~/.telnetrc file",
|
"don't read ~/.telnetrc file",
|
||||||
@@ -2254,6 +2266,7 @@ tn(int argc, char **argv)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
cmdrc(hostp, hostname);
|
cmdrc(hostp, hostname);
|
||||||
|
set_forward_options();
|
||||||
if (autologin && user == NULL)
|
if (autologin && user == NULL)
|
||||||
user = (char *)get_default_username ();
|
user = (char *)get_default_username ();
|
||||||
if (user) {
|
if (user) {
|
||||||
|
Reference in New Issue
Block a user