projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Introduce a new checkbox and command-line option to inhibit use of
[u/mdw/putty]
/
config.c
diff --git
a/config.c
b/config.c
index
71d3ac0
..
c844e05
100644
(file)
--- a/
config.c
+++ b/
config.c
@@
-350,9
+350,25
@@
static void sessionsaver_handler(union control *ctrl, void *dlg,
dlg_update_done(ctrl, dlg);
}
} else if (event == EVENT_VALCHANGE) {
dlg_update_done(ctrl, dlg);
}
} else if (event == EVENT_VALCHANGE) {
+ int top, bottom, halfway, i;
if (ctrl == ssd->editbox) {
dlg_editbox_get(ctrl, dlg, savedsession,
SAVEDSESSION_LEN);
if (ctrl == ssd->editbox) {
dlg_editbox_get(ctrl, dlg, savedsession,
SAVEDSESSION_LEN);
+ top = ssd->sesslist.nsessions;
+ bottom = -1;
+ while (top-bottom > 1) {
+ halfway = (top+bottom)/2;
+ i = strcmp(savedsession, ssd->sesslist.sessions[halfway]);
+ if (i <= 0 ) {
+ top = halfway;
+ } else {
+ bottom = halfway;
+ }
+ }
+ if (top == ssd->sesslist.nsessions) {
+ top -= 1;
+ }
+ dlg_listbox_select(ssd->listbox, dlg, top);
}
} else if (event == EVENT_ACTION) {
if (!ssd->midsession &&
}
} else if (event == EVENT_ACTION) {
if (!ssd->midsession &&
@@
-1817,8
+1833,18
@@
void setup_config_box(struct controlbox *b, int midsession,
ctrl_settitle(b, "Connection/SSH/Auth",
"Options controlling SSH authentication");
ctrl_settitle(b, "Connection/SSH/Auth",
"Options controlling SSH authentication");
+ s = ctrl_getset(b, "Connection/SSH/Auth", "main", NULL);
+ ctrl_checkbox(s, "Bypass authentication entirely (SSH-2 only)", 'b',
+ HELPCTX(ssh_auth_bypass),
+ dlg_stdcheckbox_handler,
+ I(offsetof(Config,ssh_no_userauth)));
+
s = ctrl_getset(b, "Connection/SSH/Auth", "methods",
"Authentication methods");
s = ctrl_getset(b, "Connection/SSH/Auth", "methods",
"Authentication methods");
+ ctrl_checkbox(s, "Attempt authentication using Pageant", 'p',
+ HELPCTX(ssh_auth_pageant),
+ dlg_stdcheckbox_handler,
+ I(offsetof(Config,tryagent)));
ctrl_checkbox(s, "Attempt TIS or CryptoCard auth (SSH-1)", 'm',
HELPCTX(ssh_auth_tis),
dlg_stdcheckbox_handler,
ctrl_checkbox(s, "Attempt TIS or CryptoCard auth (SSH-1)", 'm',
HELPCTX(ssh_auth_tis),
dlg_stdcheckbox_handler,