summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/session.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add logging of session starts in a useful format; ok markus@ feedback anddjm2013-10-141-1/+2
| | | | ok dtucker@
* Make the maximum number of sessions run-time controllable viadjm2008-05-081-1/+3
| | | | | | | | | | | | | | | | | a sshd_config MaxSessions knob. This is useful for disabling login/shell/subsystem access while leaving port-forwarding working (MaxSessions 0), disabling connection multiplexing (MaxSessions 1) or simply increasing the number of allows multiplexed sessions. Because some bozos are sure to configure MaxSessions in excess of the number of available file descriptors in sshd (which, at peak, might be as many as 9*MaxSessions), audit sshd to ensure that it doesn't leak fds on error paths, and make it fail gracefully on out-of-fd conditions - sending channel errors instead of than exiting with fatal(). bz#1090; MaxSessions config bits and manpage from junyer AT gmail.com ok markus@
* almost entirely get rid of the culture of ".h files that include .h files"deraadt2006-08-031-5/+1
| | | | | ok djm, sort of ok stevesk makes the pain stop in one easy step
* move #include <pwd.h> out of includes.h; ok markus@stevesk2006-07-061-1/+5
|
* standardise spacing in $OpenBSD$ tags; requested by deraadt@djm2006-03-251-1/+1
|
* annoying spacing fixes getting in the way of real diffsderaadt2006-03-201-2/+5
|
* Fix a number of X11 forwarding channel leaks:djm2005-07-171-1/+2
| | | | | | | | 1. Refuse multiple X11 forwarding requests on the same session 2. Clean up all listeners after a single_connection X11 forward, not just the one that made the single connection 3. Destroy X11 listeners when the session owning them goes away testing and ok dtucker@
* make this -Wsign-compare clean; ok avsm@ markus@djm2005-06-171-2/+2
|
* Move "Last logged in at.." message generation to the monitor, rightdtucker2004-07-171-4/+1
| | | | | | before recording the new login. Fixes missing lastlog message when /var/log/lastlog is not world-readable and incorrect datestamp when multiple sessions are used (bz #463); much assistance & ok markus@
* bz #815: implement ability to pass specified environment variables from thedjm2004-04-271-1/+6
| | | | client to the server; ok markus@
* replace fatal_cleanup() and linked list of fatal callbacks with staticmarkus2003-09-231-2/+3
| | | | | | cleanup_exit() function. re-refine cleanup_exit() where appropriate, allocate sshd's authctxt eary to allow simpler cleanup in sshd. tested by many, ok deraadt@
* support GSS API user authentication; patches from Simon Wilkinson,markus2003-08-221-1/+4
| | | | stripped down and tested by Jakob and myself.
* minor KNFderaadt2002-06-301-2/+2
|
* display, screen, row, col, xpixel, ypixel are u_int; markus okderaadt2002-06-231-4/+4
|
* retrieve last login time before the pty is allocated, store per sessionmarkus2002-03-291-1/+4
|
* clean up prototypesmarkus2002-03-191-1/+2
|
* integrate privilege separated openssh; its turned off by default for now.provos2002-03-181-2/+32
| | | | work done by me and markus@
* don't use channel_input_channel_request and callbackmarkus2002-02-031-2/+2
| | | | | | | use new server_input_channel_req() instead: server_input_channel_req does generic request parsing on server side session_input_channel_req handles just session specific things now ok djm@
* try to keep channels open until an exit-status message is sent.markus2001-10-101-2/+2
| | | | | | 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-2/+2
|
* wait until !session_have_children(); bugreport from Lutz.Jaenicke@aet.TU-Cottbus.DEmarkus2001-07-021-1/+2
|
* quick hack to make ssh2 work again.markus2001-06-271-2/+2
|
* remove comments from .h, since they are cut&paste from the .c filesmarkus2001-06-261-6/+6
| | | | and out of sync
* prototype pedant. not very creative...itojun2001-06-261-6/+6
| | | | | - () -> (void) - no variable names
* update copyright for 2001markus2001-06-251-2/+2
|
* merge common ssh v1/2 codemarkus2001-03-211-5/+2
|
* $OpenBSD$niklas2001-01-291-0/+2
|
* 1) removes fake skey from sshd, since this will be muchmarkus2001-01-181-1/+1
| | | | | | | harder with /usr/libexec/auth/login_XXX 2) share/unify code used in ssh-1 and ssh-2 authentication (server side) 3) make addition of BSD_AUTH and other challenge reponse methods easier.
* cleanup copyright notices on all files. I have attempted to be accurate withderaadt2000-09-071-0/+23
| | | | | | | the details. everything is now under Tatu's licence (which I copied from his readme), and/or the core-sdi bsd-ish thing for deattack, or various openbsd developers under a 2-term bsd licence. We're not changing any rules, just being accurate.
* ssh2 server side, see README.openssh2; enable with 'sshd -2'markus2000-04-061-0/+7
|
* split sshd.c -> auth.c session.c sshd.c plus cleanup and goto-removalmarkus2000-03-281-0/+7