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:
parent
1e726c94e8
commit
62b694affc
2
putty.h
2
putty.h
@ -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;
|
||||
|
@ -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,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user