Mercurial > dropbear
comparison svr-x11fwd.c @ 1829:a7cc3332d8ab
Replace ChanType.sepfds with Channel.bidir_fd
This handles the case where a svrchansess has separate FDs
for nopty, but a single FD for pty mode.
The use of sepfds was also previously incorrect for X11 and
agent forwarding
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Mon, 11 Oct 2021 15:42:14 +0800 |
parents | 79eef94ccea9 |
children |
comparison
equal
deleted
inserted
replaced
1828:3f0ac6bc58a1 | 1829:a7cc3332d8ab |
---|---|
209 channel->prio = DROPBEAR_CHANNEL_PRIO_INTERACTIVE; | 209 channel->prio = DROPBEAR_CHANNEL_PRIO_INTERACTIVE; |
210 return 0; | 210 return 0; |
211 } | 211 } |
212 | 212 |
213 static const struct ChanType chan_x11 = { | 213 static const struct ChanType chan_x11 = { |
214 0, /* sepfds */ | |
215 "x11", | 214 "x11", |
216 x11_inithandler, /* inithandler */ | 215 x11_inithandler, /* inithandler */ |
217 NULL, /* checkclose */ | 216 NULL, /* checkclose */ |
218 NULL, /* reqhandler */ | 217 NULL, /* reqhandler */ |
219 NULL, /* closehandler */ | 218 NULL, /* closehandler */ |