X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/0edafb21b50772bc9e245b7d140aba43875c443d..8def70c3ec6f81f95673c0de67a75b5a6b2e9e1c:/windows/wincfg.c diff --git a/windows/wincfg.c b/windows/wincfg.c index 6a970a75..516f0a3d 100644 --- a/windows/wincfg.c +++ b/windows/wincfg.c @@ -31,7 +31,7 @@ static void help_handler(union control *ctrl, void *dlg, } void win_setup_config_box(struct controlbox *b, HWND *hwndp, int has_help, - int midsession) + int midsession, int protocol) { struct controlset *s; union control *c; @@ -371,4 +371,20 @@ void win_setup_config_box(struct controlbox *b, HWND *hwndp, int has_help, } } } + + /* + * Serial back end is available on Windows. + */ + if (!midsession || (protocol == PROT_SERIAL)) + ser_setup_config_box(b, midsession, 0x1F, 0x0F); + + /* + * $XAUTHORITY is not reliable on Windows, so we provide a + * means to override it. + */ + s = ctrl_getset(b, "Connection/SSH/X11", "x11", "X11 forwarding"); + ctrl_filesel(s, "X authority file for local display", 't', + NULL, FALSE, "Select X authority file", + HELPCTX(ssh_tunnels_xauthority), + dlg_stdfilesel_handler, I(offsetof(Config, xauthfile))); }