comparison svr-agentfwd.c @ 500:d588e3ea557a agent-client

propagate from branch 'au.asn.ucc.matt.dropbear' (head 4fb35083f0f46ea667e7043e7d4314aecd3df46c) to branch 'au.asn.ucc.matt.dropbear.cli-agent' (head 833d0adef6cdbf43ea75283524c665e70b0ee1ee)
author Matt Johnston <matt@ucc.asn.au>
date Tue, 23 Sep 2008 16:05:04 +0000
parents 52a644e7b8e1 ca7e76d981d9
children 52d7301e46bd
comparison
equal deleted inserted replaced
499:f3ca5ebc319a 500:d588e3ea557a
179 m_free(chansess->agentdir); 179 m_free(chansess->agentdir);
180 } 180 }
181 181
182 } 182 }
183 183
184 static const struct ChanType chan_agent = { 184 static const struct ChanType chan_svr_agent = {
185 0, /* sepfds */ 185 0, /* sepfds */
186 "[email protected]", 186 "[email protected]",
187 NULL, 187 NULL,
188 NULL, 188 NULL,
189 NULL, 189 NULL,
192 192
193 193
194 /* helper for accepting an agent request */ 194 /* helper for accepting an agent request */
195 static int send_msg_channel_open_agent(int fd) { 195 static int send_msg_channel_open_agent(int fd) {
196 196
197 if (send_msg_channel_open_init(fd, &chan_agent) == DROPBEAR_SUCCESS) { 197 if (send_msg_channel_open_init(fd, &chan_svr_agent) == DROPBEAR_SUCCESS) {
198 encrypt_packet(); 198 encrypt_packet();
199 return DROPBEAR_SUCCESS; 199 return DROPBEAR_SUCCESS;
200 } else { 200 } else {
201 return DROPBEAR_FAILURE; 201 return DROPBEAR_FAILURE;
202 } 202 }