1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00

New backend flag indicating support for CONF_ssh_nc_host.

This flag is set in backends which can be used programmatically to
proxy a network connection in place of running a shell session. That
is true of both SSH proper, and the psusan ssh-connection protocol.

Nothing yet uses this flag, but something is about to.
This commit is contained in:
Simon Tatham 2021-05-22 11:27:19 +01:00
parent 1e726c94e8
commit 62b694affc
2 changed files with 4 additions and 0 deletions

View File

@ -617,6 +617,8 @@ enum {
#define BACKEND_RESIZE_FORBIDDEN 0x01 /* Backend does not allow
resizing terminal */
#define BACKEND_NEEDS_TERMINAL 0x02 /* Backend must have terminal */
#define BACKEND_SUPPORTS_NC_HOST 0x04 /* Backend can honour
CONF_ssh_nc_host */
struct Backend {
const BackendVtable *vt;

View File

@ -1221,6 +1221,7 @@ const BackendVtable ssh_backend = {
.id = "ssh",
.displayname = "SSH",
.protocol = PROT_SSH,
.flags = BACKEND_SUPPORTS_NC_HOST,
.default_port = 22,
};
@ -1245,4 +1246,5 @@ const BackendVtable sshconn_backend = {
.id = "ssh-connection",
.displayname = "Bare ssh-connection",
.protocol = PROT_SSHCONN,
.flags = BACKEND_SUPPORTS_NC_HOST,
};