Fix bug in which the SSH-only tools (pscp, psftp) did not honour a
[u/mdw/putty] / be_ssh.c
diff --git a/be_ssh.c b/be_ssh.c
new file mode 100644 (file)
index 0000000..57d241c
--- /dev/null
+++ b/be_ssh.c
@@ -0,0 +1,16 @@
+/*
+ * Linking module for programs that are restricted to only using SSH
+ * (pscp and psftp). These do not support selection of backend, but
+ * must still have a backends[] array mentioning SSH because
+ * settings.c will want to consult it during session load.
+ */
+
+#include <stdio.h>
+#include "putty.h"
+
+const int be_default_protocol = PROT_SSH;
+
+Backend *backends[] = {
+    &ssh_backend,
+    NULL
+};