Skip to content

Commit d0f786c

Browse files
author
simon
committed
Merge r9254 (the PSCP/PSFTP protocol override fix).
git-svn-id: svn://svn.tartarus.org/sgt/putty-branch-0.61@9255 cda61777-01e9-0310-a592-d414129be87e
1 parent 030dd13 commit d0f786c

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

Recipe

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

be_none.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Linking module for programs that do not support selection of backend
3-
* (such as pscp or pterm).
3+
* (such as pterm).
44
*/
55

66
#include <stdio.h>

be_ssh.c

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/*
2+
* Linking module for programs that are restricted to only using SSH
3+
* (pscp and psftp). These do not support selection of backend, but
4+
* must still have a backends[] array mentioning SSH because
5+
* settings.c will want to consult it during session load.
6+
*/
7+
8+
#include <stdio.h>
9+
#include "putty.h"
10+
11+
const int be_default_protocol = PROT_SSH;
12+
13+
Backend *backends[] = {
14+
&ssh_backend,
15+
NULL
16+
};

0 commit comments

Comments
 (0)