mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-02 03:52:49 -05:00
Revamp of the local X11 connection code. We now parse X display
strings more rigorously, and then we look up the local X authority data in .Xauthority _ourself_ rather than delegating to an external xauth program. This is (negligibly) more efficient on Unix, assuming I haven't got it wrong in some subtle way, but its major benefit is that we can now support X authority lookups on Windows as well provided the user points us at an appropriate X authority file in the standard format. A new Windows-specific config option has been added for this purpose. [originally from svn r8305]
This commit is contained in:
@ -446,6 +446,7 @@ void save_open_settings(void *sesskey, Config *cfg)
|
||||
write_setting_i(sesskey, "X11Forward", cfg->x11_forward);
|
||||
write_setting_s(sesskey, "X11Display", cfg->x11_display);
|
||||
write_setting_i(sesskey, "X11AuthType", cfg->x11_auth);
|
||||
write_setting_filename(sesskey, "X11AuthFile", cfg->xauthfile);
|
||||
write_setting_i(sesskey, "LocalPortAcceptAll", cfg->lport_acceptall);
|
||||
write_setting_i(sesskey, "RemotePortAcceptAll", cfg->rport_acceptall);
|
||||
wmap(sesskey, "PortForwardings", cfg->portfwd, lenof(cfg->portfwd));
|
||||
@ -775,6 +776,7 @@ void load_open_settings(void *sesskey, Config *cfg)
|
||||
gpps(sesskey, "X11Display", "", cfg->x11_display,
|
||||
sizeof(cfg->x11_display));
|
||||
gppi(sesskey, "X11AuthType", X11_MIT, &cfg->x11_auth);
|
||||
gppfile(sesskey, "X11AuthFile", &cfg->xauthfile);
|
||||
|
||||
gppi(sesskey, "LocalPortAcceptAll", 0, &cfg->lport_acceptall);
|
||||
gppi(sesskey, "RemotePortAcceptAll", 0, &cfg->rport_acceptall);
|
||||
|
Reference in New Issue
Block a user