Mercurial > dropbear
comparison svr-agentfwd.c @ 225:ca7e76d981d9 agent-client
- progress towards client agent forwarding
(incomplete and does not compile)
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Mon, 18 Jul 2005 14:32:52 +0000 |
parents | 0cfba3034be5 |
children | d588e3ea557a |
comparison
equal
deleted
inserted
replaced
224:1dbd2473482f | 225:ca7e76d981d9 |
---|---|
174 m_free(chansess->agentdir); | 174 m_free(chansess->agentdir); |
175 } | 175 } |
176 | 176 |
177 } | 177 } |
178 | 178 |
179 static const struct ChanType chan_agent = { | 179 static const struct ChanType chan_svr_agent = { |
180 0, /* sepfds */ | 180 0, /* sepfds */ |
181 "[email protected]", | 181 "[email protected]", |
182 NULL, | 182 NULL, |
183 NULL, | 183 NULL, |
184 NULL, | 184 NULL, |
187 | 187 |
188 | 188 |
189 /* helper for accepting an agent request */ | 189 /* helper for accepting an agent request */ |
190 static int send_msg_channel_open_agent(int fd) { | 190 static int send_msg_channel_open_agent(int fd) { |
191 | 191 |
192 if (send_msg_channel_open_init(fd, &chan_agent) == DROPBEAR_SUCCESS) { | 192 if (send_msg_channel_open_init(fd, &chan_svr_agent) == DROPBEAR_SUCCESS) { |
193 encrypt_packet(); | 193 encrypt_packet(); |
194 return DROPBEAR_SUCCESS; | 194 return DROPBEAR_SUCCESS; |
195 } else { | 195 } else { |
196 return DROPBEAR_FAILURE; | 196 return DROPBEAR_FAILURE; |
197 } | 197 } |