Mercurial > dropbear
comparison chansession.h @ 1662:8a7d26e86a56
Set SSH_ORIGINAL_COMMAND for "dropbear -c" too, fix build without
DROPBEAR_SVR_PUBKEY_OPTIONS
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sat, 14 Mar 2020 23:28:18 +0800 |
parents | 0c16b4ccbd54 |
children |
comparison
equal
deleted
inserted
replaced
1661:6a6a0bac52f4 | 1662:8a7d26e86a56 |
---|---|
39 | 39 |
40 struct ChanSess { | 40 struct ChanSess { |
41 | 41 |
42 char * cmd; /* command to exec */ | 42 char * cmd; /* command to exec */ |
43 pid_t pid; /* child process pid */ | 43 pid_t pid; /* child process pid */ |
44 /* command that was sent by the client, if authorized_keys command= or | |
45 dropbear -c was used */ | |
46 char *original_command; | |
44 | 47 |
45 /* pty details */ | 48 /* pty details */ |
46 int master; /* the master terminal fd*/ | 49 int master; /* the master terminal fd*/ |
47 int slave; | 50 int slave; |
48 char * tty; | 51 char * tty; |
70 #if DROPBEAR_SVR_AGENTFWD | 73 #if DROPBEAR_SVR_AGENTFWD |
71 struct Listener * agentlistener; | 74 struct Listener * agentlistener; |
72 char * agentfile; | 75 char * agentfile; |
73 char * agentdir; | 76 char * agentdir; |
74 #endif | 77 #endif |
75 | |
76 #if DROPBEAR_SVR_PUBKEY_OPTIONS_BUILT | |
77 char *original_command; | |
78 #endif | |
79 }; | 78 }; |
80 | 79 |
81 struct ChildPid { | 80 struct ChildPid { |
82 pid_t pid; | 81 pid_t pid; |
83 struct ChanSess * chansess; | 82 struct ChanSess * chansess; |