1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-05-09 13:42:09 -05:00

Merge r9254 (the PSCP/PSFTP protocol override fix).

[originally from svn r9255]
[r9254 == f14953d9e94c176cfc928bb719d6f613da96717e]
This commit is contained in:
Simon Tatham 2011-07-27 18:46:33 +00:00
parent f4307eb8e1
commit 2ff01c50ec
3 changed files with 18 additions and 2 deletions

2
Recipe
View File

@ -289,7 +289,7 @@ LIBS = advapi32.lib user32.lib gdi32.lib comctl32.lib comdlg32.lib
# to proxy.c depending on whether we're crypto-avoidant or not.
BE_ALL = be_all cproxy
BE_NOSSH = be_nossh nocproxy
BE_SSH = be_none cproxy
BE_SSH = be_ssh cproxy
BE_NONE = be_none nocproxy
# More backend sets, with the additional Windows serial-port module.
W_BE_ALL = be_all_s winser cproxy

View File

@ -1,6 +1,6 @@
/*
* Linking module for programs that do not support selection of backend
* (such as pscp or pterm).
* (such as pterm).
*/
#include <stdio.h>

16
be_ssh.c Normal file
View File

@ -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
};