projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Another bug fix: always set the busy flag when telling a subthread
[u/mdw/putty]
/
config.c
diff --git
a/config.c
b/config.c
index
39da6c2
..
a2f660f
100644
(file)
--- a/
config.c
+++ b/
config.c
@@
-564,7
+564,9
@@
static void colour_handler(union control *ctrl, void *dlg,
int i, cval;
dlg_editbox_get(ctrl, dlg, buf, lenof(buf));
int i, cval;
dlg_editbox_get(ctrl, dlg, buf, lenof(buf));
- cval = atoi(buf) & 255;
+ cval = atoi(buf);
+ if (cval > 255) cval = 255;
+ if (cval < 0) cval = 0;
i = dlg_listbox_index(cd->listbox, dlg);
if (i >= 0) {
i = dlg_listbox_index(cd->listbox, dlg);
if (i >= 0) {
@@
-1841,6
+1843,10
@@
void setup_config_box(struct controlbox *b, int midsession,
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,