mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-03 12:32:47 -05:00
Loose end from r5031: the Kex panel should only be displayed in
mid-session if we are not using SSHv1. I've done this by introducing
a generic `cfg_info' function which every back end can use to
communicate an int's worth of data to setup_config_box; in SSH
that's the protocol version in use, and in everything else it's
currently zero.
[originally from svn r5040]
[r5031 == d77102a8d5
]
This commit is contained in:
@ -598,7 +598,7 @@ int do_config(void)
|
||||
int ret;
|
||||
|
||||
ctrlbox = ctrl_new_box();
|
||||
setup_config_box(ctrlbox, &sesslist, FALSE, 0);
|
||||
setup_config_box(ctrlbox, &sesslist, FALSE, 0, 0);
|
||||
win_setup_config_box(ctrlbox, &dp.hwnd, (help_path != NULL), FALSE);
|
||||
dp_init(&dp);
|
||||
winctrl_init(&ctrls_base);
|
||||
@ -624,7 +624,7 @@ int do_config(void)
|
||||
return ret;
|
||||
}
|
||||
|
||||
int do_reconfig(HWND hwnd)
|
||||
int do_reconfig(HWND hwnd, int protcfginfo)
|
||||
{
|
||||
Config backup_cfg;
|
||||
int ret;
|
||||
@ -632,7 +632,7 @@ int do_reconfig(HWND hwnd)
|
||||
backup_cfg = cfg; /* structure copy */
|
||||
|
||||
ctrlbox = ctrl_new_box();
|
||||
setup_config_box(ctrlbox, &sesslist, TRUE, cfg.protocol);
|
||||
setup_config_box(ctrlbox, &sesslist, TRUE, cfg.protocol, protcfginfo);
|
||||
win_setup_config_box(ctrlbox, &dp.hwnd, (help_path != NULL), TRUE);
|
||||
dp_init(&dp);
|
||||
winctrl_init(&ctrls_base);
|
||||
|
Reference in New Issue
Block a user