OSDN Git Service

Add PuTTY 0.61 to contrib directory.
[ffftp/ffftp.git] / contrib / putty / BE_NOSSH.C
diff --git a/contrib/putty/BE_NOSSH.C b/contrib/putty/BE_NOSSH.C
new file mode 100644 (file)
index 0000000..e127cd9
--- /dev/null
@@ -0,0 +1,33 @@
+/*\r
+ * Linking module for PuTTYtel: list the available backends not\r
+ * including ssh.\r
+ */\r
+\r
+#include <stdio.h>\r
+#include "putty.h"\r
+\r
+const int be_default_protocol = PROT_TELNET;\r
+\r
+const char *const appname = "PuTTYtel";\r
+\r
+Backend *backends[] = {\r
+    &telnet_backend,\r
+    &rlogin_backend,\r
+    &raw_backend,\r
+    NULL\r
+};\r
+\r
+/*\r
+ * Stub implementations of functions not used in non-ssh versions.\r
+ */\r
+void random_save_seed(void)\r
+{\r
+}\r
+\r
+void random_destroy_seed(void)\r
+{\r
+}\r
+\r
+void noise_ultralight(unsigned long data)\r
+{\r
+}\r