X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/8def70c3ec6f81f95673c0de67a75b5a6b2e9e1c..4a693cfc5c3ee0e639bbee0215345e921715ab04:/windows/winx11.c diff --git a/windows/winx11.c b/windows/winx11.c index c8951b08..b8c7fa7d 100644 --- a/windows/winx11.c +++ b/windows/winx11.c @@ -1,18 +1,19 @@ -/* - * winx11.c: fetch local auth data for X forwarding. - */ - -#include -#include -#include - -#include "putty.h" -#include "ssh.h" - -void platform_get_x11_auth(struct X11Display *disp, const Config *cfg) -{ - if (cfg->xauthfile.path[0]) - x11_get_auth_from_authfile(disp, cfg->xauthfile.path); -} - -const int platform_uses_x11_unix_by_default = FALSE; +/* + * winx11.c: fetch local auth data for X forwarding. + */ + +#include +#include +#include + +#include "putty.h" +#include "ssh.h" + +void platform_get_x11_auth(struct X11Display *disp, Conf *conf) +{ + char *xauthpath = conf_get_filename(conf, CONF_xauthfile)->path; + if (xauthpath[0]) + x11_get_auth_from_authfile(disp, xauthpath); +} + +const int platform_uses_x11_unix_by_default = FALSE;