Re: Terminal parameters patch
Peter Gutmann <[email protected]> Thu, 25 Sep 2014 14:33:12 +1200
| Newsgroups | gmane.comp.encryption.cryptlib |
|---|---|
| Message-ID | <[email protected]> |
Stephen Hurd <[email protected]> writes: >Hrm... how about the env variables TERM, COLUMNS and LINE as specified by >SUSv2 here: > >http://pubs.opengroup.org/onlinepubs/7908799/xbd/envvar.html This still has the issue that it solves one particular problem for one user, leading to the same variable-explosion problem I mentioned before when everyone wants their own set of SSH parameters. However in this specific case SSH does support this as an "env" channel request, you could probably do it via the CRYPT_SESSINFO_SSH_CHANNEL attributes which allow you to construct your own channel requests. At the moment this facility is only used for things like subsystem requests, and even then is disabled by default because it's virtually never used and adds a lot of complexity (meaning attack surface). On the server side it's done via processChannelRequest() in ssh2_msgs.c, on the client side it's done via createOpenRequest() in ssh2_msgc.c. Also, if all you want to do is change the window size then you could send a "window- change" channel request instead of an "env" one. This may require a bit of extra plumbing in the code, because of its lack (or possibly even complete absence) of use it hasn't had much attention. Peter. _______________________________________________ Cryptlib mailing list [email protected] via Mail: [email protected] Archive: ftp://ftp.franken.de/pub/crypt/cryptlib/archives/ http://news.gmane.org/gmane.comp.encryption.cryptlib Posts from non-subscribed addresses are blocked to prevent spam, please subscribe in order to post messages.