X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/dcfd072859faf68a06c2836a478d3771fb518c2a..c969e831c5977919d3e1c094acc86e194c50d17c:/config.c diff --git a/config.c b/config.c index 39da6c2a..a2f660f4 100644 --- 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)); - 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) { @@ -1841,6 +1843,10 @@ void setup_config_box(struct controlbox *b, int midsession, 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,