aboutsummaryrefslogtreecommitdiff
path: root/tools/plink/winx11.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2009-08-07 12:33:59 +0000
committermarha <marha@users.sourceforge.net>2009-08-07 12:33:59 +0000
commite7e9a66629ada359ad6a35cdb12e0e35b49e889c (patch)
treea93f38125aee1970e8a41bd23f4abc9162deeaee /tools/plink/winx11.c
parent527d85e0327133858ddb86169f2840f305c192b3 (diff)
downloadvcxsrv-e7e9a66629ada359ad6a35cdb12e0e35b49e889c.tar.gz
vcxsrv-e7e9a66629ada359ad6a35cdb12e0e35b49e889c.tar.bz2
vcxsrv-e7e9a66629ada359ad6a35cdb12e0e35b49e889c.zip
Added plink tool (version without console, except if output is generated)
Added possibility to build console application or windows application in makefile.after
Diffstat (limited to 'tools/plink/winx11.c')
-rw-r--r--tools/plink/winx11.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/tools/plink/winx11.c b/tools/plink/winx11.c
new file mode 100644
index 000000000..c8951b086
--- /dev/null
+++ b/tools/plink/winx11.c
@@ -0,0 +1,18 @@
+/*
+ * winx11.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, 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;