Revamp of the local X11 connection code. We now parse X display
[u/mdw/putty] / windows / winx11.c
diff --git a/windows/winx11.c b/windows/winx11.c
new file mode 100644 (file)
index 0000000..c8951b0
--- /dev/null
@@ -0,0 +1,18 @@
+/*\r
+ * winx11.c: fetch local auth data for X forwarding.\r
+ */\r
+\r
+#include <ctype.h>\r
+#include <assert.h>\r
+#include <stdlib.h>\r
+\r
+#include "putty.h"\r
+#include "ssh.h"\r
+\r
+void platform_get_x11_auth(struct X11Display *disp, const Config *cfg)\r
+{\r
+    if (cfg->xauthfile.path[0])\r
+       x11_get_auth_from_authfile(disp, cfg->xauthfile.path);\r
+}\r
+\r
+const int platform_uses_x11_unix_by_default = FALSE;\r