mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 17:38:00 +00:00
85680c77c0
I think the only reason it currently takes a plain string is because its interesting caller (in unix/x11.c) has just constructed a string out of an environment variable, and it seemed like the path of least effort not to bother wrapping it into a proper Filename. But when Filename on Windows becomes more interesting, we'll need it to take the full version.
20 lines
430 B
C
20 lines
430 B
C
/*
|
|
* x11.c: fetch local auth data for X forwarding.
|
|
*/
|
|
|
|
#include <ctype.h>
|
|
#include <assert.h>
|
|
#include <stdlib.h>
|
|
|
|
#include "putty.h"
|
|
#include "ssh.h"
|
|
|
|
void platform_get_x11_auth(struct X11Display *disp, Conf *conf)
|
|
{
|
|
Filename *xauthfn = conf_get_filename(conf, CONF_xauthfile);
|
|
if (!filename_is_null(xauthfn))
|
|
x11_get_auth_from_authfile(disp, xauthfn);
|
|
}
|
|
|
|
const bool platform_uses_x11_unix_by_default = false;
|