summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/channels.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* use only one path to X11 UNIX domain socket vs. an array of pathsstevesk2001-12-081-23/+11
| | | | to try. report from djast@cs.toronto.edu. ok markus@
* disable nagle for X11 fake server and client TCPs. from netbsd.stevesk2001-12-061-3/+9
| | | | ok markus@
* strncpy->strlcpy. remaining strncpy's are necessary. ok markus@stevesk2001-12-061-5/+3
|
* shutdown(sock, SHUT_RDWR) not needed here; ok markus@stevesk2001-12-061-4/+1
|
* minor KNFderaadt2001-12-051-5/+5
|
* make it compile with more strict prototype checkingitojun2001-12-051-10/+10
|
* sshd X11 fake server will now listen on localhost by default:stevesk2001-11-291-20/+12
| | | | | | | | | | $ echo $DISPLAY localhost:12.0 $ netstat -an|grep 6012 tcp 0 0 127.0.0.1.6012 *.* LISTEN tcp6 0 0 ::1.6012 *.* LISTEN sshd_config gatewayports=yes can be used to revert back to the old behavior. will control this with another option later. ok markus@
* try to keep channels open until an exit-status message is sent.markus2001-10-101-24/+25
| | | | | | don't kill the login shells if the shells stdin/out/err is closed. this should now work: ssh -2n localhost 'exec > /dev/null 2>&1; sleep 10; exit 5'; echo ?
* simplify session close: no more delayed session_close, no more blocking wait() calls.markus2001-10-091-17/+1
|
* better debugmarkus2001-10-081-2/+2
|
* avoid possible FD_ISSET overflow for channels establishedmarkus2001-10-071-8/+28
| | | | during channnel_after_select() (used for dynamic channels).
* comment out bogus conditions for selecting on connection_inmarkus2001-10-041-4/+8
|
* remove ugliness; vp@drexel.edu via angelosmarkus2001-10-011-2/+8
|
* don't send fake dummy packets on CR (\r)markus2001-09-171-4/+7
| | | | bugreport from yyua@cs.sfu.ca via solar@@openwall.com
* try to fix agent-forwarding-backconnection-bug, as seen on HPUX, for example;markus2001-09-171-1/+14
| | | | with Lutz.Jaenicke@aet.TU-Cottbus.DE,
* keep track of both maxfd and the size of the malloc'ed fdsets.markus2001-07-171-32/+47
| | | | update maxfd if maxfd gets closed.
* improve cleanup/exit logic in ssh2:markus2001-07-021-7/+49
| | | | | | stop listening to channels, detach channel users (e.g. sessions). wait for children (i.e. dying sessions), send exit messages, cleanup all channels.
* adress -> address; ok markus@stevesk2001-06-301-2/+2
|
* use socklen_t for getsockopt arg #5; ok markus@stevesk2001-06-291-2/+2
|
* update copyright for 2001markus2001-06-251-3/+2
|
* more strict prototypes. raise warning level in Makefile.inc. markus ok'editojun2001-06-231-38/+36
| | | | TODO; cleanup headers
* move from channel_stop_listening to channel_free_all,markus2001-06-201-34/+6
| | | | | call channel_free_all before calling waitpid() in serverloop. fixes the utmp handling; report from Lutz.Jaenicke@aet.TU-Cottbus.DE
* use xxx_put_cstring()markus2001-06-071-2/+2
|
* don't delete the auth socket in channel_stop_listening()markus2001-06-051-2/+3
| | | | auth_sock_cleanup_proc() will take care of this.
* switch uid when cleaning up tmp files and sockets; reported by zen-parse@gmx.net on bugtraqmarkus2001-06-041-4/+8
|
* use fatal_register_cleanup instead of atexit, sync with x11 authdir handlingmarkus2001-06-031-9/+11
|
* undo the .c file split, just merge the header and keep the cvs historymarkus2001-05-311-0/+2857
|
* channel layer cleanup: merge header files and split .c filesmarkus2001-05-301-2843/+0
|
* cleanup, typomarkus2001-05-281-4/+3
|
* undo broken channel fix and try a different one. theremarkus2001-05-281-8/+20
| | | | should be still some select errors...
* typo in error messagestevesk2001-05-191-2/+2
|
* more select() error fixes (don't set rfd/wfd to -1).markus2001-05-161-3/+4
|
* fix -R for protocol 2, noticed by greg@nest.cx.markus2001-05-091-3/+4
| | | | bug was introduced with experimental dynamic forwarding.
* adds correct error reporting to async connect()smarkus2001-05-081-22/+58
| | | | fixes the server-discards-data-before-connected-bug found by onoe@sm.sony.co.jp
* move to Channel **channels (instead of Channel *channels), fixes realloc problems.markus2001-05-041-162/+193
| | | | | channel_new now returns a Channel *, favour Channel * over channel id. remove old channel_allocate interface.
* channel_new() reallocs channels[], we cannot use Channel *c after callingmarkus2001-05-041-4/+11
| | | | channel_new(), XXX fix this in the future...
* typo in debug() stringstevesk2001-05-031-2/+2
|
* more ssh.com-2.0.x bug-compat; from per@appgate.commarkus2001-04-291-2/+2
|
* undo socks5 and https support since they are not really used andmarkus2001-04-171-188/+23
| | | | only bloat ssh. remove -D from usage(), since '-D' is experimental.
* remove some channels that are not appropriate for keepalive.markus2001-04-141-5/+5
|
* Add options ClientAliveInterval and ClientAliveCountMax to sshd.beck2001-04-131-1/+36
| | | | | | | | This gives the ability to do a "keepalive" via the encrypted channel which can't be spoofed (unlike TCP keepalives). Useful for when you want to use ssh connections to authenticate people for something, and know relatively quickly when they are no longer authenticated. Disabled by default (of course). ok markus@
* https-connect and socks5 support. i feel so bad.markus2001-04-111-11/+149
|
* debug cleanupmarkus2001-04-101-6/+6
|
* cleanup socks4 handlingmarkus2001-04-101-69/+117
|
* allow the ssh client act as a SOCKS4 proxy (dynamic local portforwarding).markus2001-04-071-46/+182
| | | | | | work by Dan Kaminsky <dankamin@cisco.com> and me. thanks to Dan for this great patch: use 'ssh -D 1080 host' and make netscape use localhost:1080 as a socks proxy.
* do gid/groups-swap in addition to uid-swap, should help if /home/groupmarkus2001-04-061-2/+2
| | | | | is chmod 750 + chgrp grp /home/group/, work be deraadt and me, thanks to olar@openwall.com is comments. we had many requests for this.
* fix whitespace: unexpand + trailing spaces.markus2001-04-051-3/+3
|
* more robust rekeyingmarkus2001-04-041-3/+5
| | | | don't send channel data after rekeying is started.
* implement "permitopen" key option, restricts -L style forwarding tomarkus2001-03-161-60/+79
| | | | to specified host:port pairs. based on work by harlan@genua.de
* log functions should not be passed strings that end in newline as theymillert2001-03-041-2/+2
| | | | | get passed on to syslog() and when logging to stderr, do_log() appends its own newline.