comparison svr-agentfwd.c @ 458:c1e9c81d1d27 agent-client

propagate from branch 'au.asn.ucc.matt.dropbear' (head 8a7db1e2fdc5636abb338adb636babc32f465739) to branch 'au.asn.ucc.matt.dropbear.cli-agent' (head d82c25da2f7e4fb6da510d806c64344e80bb270d)
author Matt Johnston <matt@ucc.asn.au>
date Thu, 16 Aug 2007 13:34:37 +0000
parents ca7e76d981d9
children d588e3ea557a
comparison
equal deleted inserted replaced
457:e430a26064ee 458:c1e9c81d1d27
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 }