diff options
author | marha <marha@users.sourceforge.net> | 2010-11-19 10:30:56 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2010-11-19 10:30:56 +0000 |
commit | 20a8b976130e3b2cfff5c3364169e61ec10291f3 (patch) | |
tree | b2fbea50cfb846049fc690a252baec07397a1acc /tools/plink/be_all.c | |
parent | 0b67cceb98ba4ab7b5cdaf9d6e9583d3c53802ea (diff) | |
download | vcxsrv-20a8b976130e3b2cfff5c3364169e61ec10291f3.tar.gz vcxsrv-20a8b976130e3b2cfff5c3364169e61ec10291f3.tar.bz2 vcxsrv-20a8b976130e3b2cfff5c3364169e61ec10291f3.zip |
Copied tools directory from trunk. Here the original versions will be checked in, so that we can update them and merge the changes back in.
Diffstat (limited to 'tools/plink/be_all.c')
-rw-r--r-- | tools/plink/be_all.c | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/tools/plink/be_all.c b/tools/plink/be_all.c new file mode 100644 index 000000000..05ba82d75 --- /dev/null +++ b/tools/plink/be_all.c @@ -0,0 +1,31 @@ +/*
+ * Linking module for PuTTY proper: list the available backends
+ * including ssh.
+ */
+
+#include <stdio.h>
+#include "putty.h"
+
+/*
+ * This appname is not strictly in the right place, since Plink
+ * also uses this module. However, Plink doesn't currently use any
+ * of the dialog-box sorts of things that make use of appname, so
+ * it shouldn't do any harm here. I'm trying to avoid having to
+ * have tiny little source modules containing nothing but
+ * declarations of appname, for as long as I can...
+ */
+const char *const appname = "PuTTY";
+
+#ifdef TELNET_DEFAULT
+const int be_default_protocol = PROT_TELNET;
+#else
+const int be_default_protocol = PROT_SSH;
+#endif
+
+Backend *backends[] = {
+ &ssh_backend,
+ &telnet_backend,
+ &rlogin_backend,
+ &raw_backend,
+ NULL
+};
|