summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* - djm@cvs.openbsd.org 2008/05/15 23:52:24djm2008-05-192-4/+8
| | | | | | [nchan2.ms] document eow message in ssh protocol 2 channel state machine; feedback and ok markus@
* - pvalchev@cvs.openbsd.org 2008/05/12 20:52:20djm2008-05-192-4/+10
| | | | | | [umac.c] Ensure nh_result lies on a 64-bit boundary (fixes warnings observed on Itanium on Linux); from Dale Talcott (bug #1462); ok djm@
* - markus@cvs.openbsd.org 2008/05/09 16:21:13djm2008-05-195-6/+48
| | | | | | | | | [channels.h clientloop.c nchan.c serverloop.c] unbreak ssh -2 localhost od /bin/ls | true ignoring SIGPIPE by adding a new channel message (EOW) that signals the peer that we're not interested in any data it might send. fixes bz #85; discussion, debugging and ok djm@
* - markus@cvs.openbsd.org 2008/05/09 16:17:51djm2008-05-192-3/+10
| | | | | | | | [channels.c] error-fd race: don't enable the error fd in the select bitmask for channels with both in- and output closed, since the channel will go away before we call select(); report, lots of debugging help and ok djm@
* - markus@cvs.openbsd.org 2008/05/09 16:16:06djm2008-05-192-2/+9
| | | | | | | | | [session.c] re-add the USE_PIPES code and enable it. without pipes shutdown-read from the sshd does not trigger a SIGPIPE when the forked program does a write. ok djm@ (Id sync only, USE_PIPES never left portable OpenSSH)
* - djm@cvs.openbsd.org 2008/05/09 14:26:08djm2008-05-192-2/+5
| | | | | [ssh.c] dingo stole my diff hunk
* - djm@cvs.openbsd.org 2008/05/09 14:18:44djm2008-05-196-596/+699
| | | | | | | | [clientloop.c clientloop.h ssh.c mux.c] tidy up session multiplexing code, moving it into its own file and making the function names more consistent - making ssh.c and clientloop.c a fair bit more readable. ok markus@
* - djm@cvs.openbsd.org 2008/05/09 04:55:56djm2008-05-195-88/+149
| | | | | | | | | | | [channels.c channels.h clientloop.c serverloop.c] Try additional addresses when connecting to a port forward destination whose DNS name resolves to more than one address. The previous behaviour was to try the first address and give up. Reported by stig AT venaas.com in bz#343 great feedback and ok markus@
* - djm@cvs.openbsd.org 2008/05/08 13:06:11djm2008-05-194-53/+90
| | | | | | | | | | | | | | [clientloop.c clientloop.h ssh.c] Use new channel status confirmation callback system to properly deal with "important" channel requests that fail, in particular command exec, shell and subsystem requests. Previously we would optimistically assume that the requests would always succeed, which could cause hangs if they did not (e.g. when the server runs out of fds) or were unimplemented by the server (bz #1384) Also, properly report failing multiplex channel requests via the mux client stderr (subject to LogLevel in the mux master) - better than silently failing. most bits ok markus@ (as part of a larger diff)
* - djm@cvs.openbsd.org 2008/05/08 12:21:16djm2008-05-199-138/+326
| | | | | | | | | | | | | | | | | [monitor.c monitor_wrap.c session.h servconf.c servconf.h session.c] [sshd_config sshd_config.5] Make the maximum number of sessions run-time controllable via 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@
* - (djm) [openbsd-compat/port-tun.c] needs sys/queue.hdjm2008-05-192-1/+3
|
* - (djm) [openbsd-compat/bsd-arc4random.c] Warning fixesdjm2008-05-192-2/+4
|
* - djm@cvs.openbsd.org 2008/05/08 12:02:23djm2008-05-1915-31/+132
| | | | | | | | | | | | | | | [auth-options.c auth1.c channels.c channels.h clientloop.c gss-serv.c] [monitor.c monitor_wrap.c nchan.c servconf.c serverloop.c session.c] [ssh.c sshd.c] Implement a channel success/failure status confirmation callback mechanism. Each channel maintains a queue of callbacks, which will be drained in order (RFC4253 guarantees confirm messages are not reordered within an channel). Also includes a abandonment callback to clean up if a channel is closed without sending confirmation messages. This probably shouldn't happen in compliant implementations, but it could be abused to leak memory. ok markus@ (as part of a larger diff)
* - markus@cvs.openbsd.org 2008/05/08 06:59:01djm2008-05-196-11/+36
| | | | | | [bufaux.c buffer.h channels.c packet.c packet.h] avoid extra malloc/copy/free when receiving data over the net; ~10% speedup for localhost-scp; ok djm@
* - jmc@cvs.openbsd.org 2008/05/07 08:00:14djm2008-05-192-12/+15
| | | | | [sshd_config.5] sort;
* - pyr@cvs.openbsd.org 2008/05/07 06:43:35djm2008-05-192-2/+6
| | | | | [sshd_config] push the sshd_config bits in, spotted by ajacoutot@
* - pyr@cvs.openbsd.org 2008/05/07 05:49:37djm2008-05-195-9/+38
| | | | | | | | | | | [servconf.c servconf.h session.c sshd_config.5] Enable the AllowAgentForwarding option in sshd_config (global and match context), to specify if agents should be permitted on the server. As the man page states: ``Note that disabling Agent forwarding does not improve security unless users are also denied shell access, as they can always install their own forwarders.'' ok djm@, ok and a mild frown markus@
* - djm@cvs.openbsd.org 2008/04/30 10:14:03djm2008-05-193-6/+10
| | | | | | [ssh-keyscan.1 ssh-keyscan.c] default to rsa (protocol 2) keys, instead of rsa1 keys; spotted by larsnooden AT openoffice.org
* - otto@cvs.openbsd.org 2008/04/29 11:20:31djm2008-05-192-5/+5
| | | | | [monitor_mm.h] garbage collect two unused fields in struct mm_master; ok markus@
* - djm@cvs.openbsd.org 2008/04/18 22:01:33djm2008-05-192-3/+6
| | | | | [session.c] remove unneccessary parentheses
* - jmc@cvs.openbsd.org 2008/04/18 17:15:47djm2008-05-192-4/+8
| | | | | [sftp.1] macro fixage;
* - djm@cvs.openbsd.org 2008/04/18 12:32:11djm2008-05-197-15/+339
| | | | | | | | | | | [sftp-client.c sftp-client.h sftp-server.c sftp.1 sftp.c sftp.h] introduce sftp extension methods statvfs@openssh.com and fstatvfs@openssh.com that implement statvfs(2)-like operations, based on a patch from miklos AT szeredi.hu (bz#1399) also add a "df" command to the sftp client that uses the statvfs@openssh.com to produce a df(1)-like display of filesystem space and inode utilisation ok markus@
* - (djm) OpenBSD CVS Syncdjm2008-05-193-28/+17
| | | | | | | | | - djm@cvs.openbsd.org 2008/04/13 00:22:17 [dh.c sshd.c] Use arc4random_buf() when requesting more than a single word of output Use arc4random_uniform() when the desired random number upper bound is not a power of two ok deraadt@ millert@
* - (djm) [openbsd-compat/bsd-arc4random.c openbsd-compat/openbsd-compat.c]djm2008-05-194-4/+82
| | | | | [configure.ac] Implement arc4random_buf(), import implementation of arc4random_uniform() from OpenBSD
* - djm@cvs.openbsd.org 2008/04/05 02:46:02djm2008-05-192-4/+8
| | | | | [sshd_config.5] HostbasedAuthentication is supported under Match too
* - djm@cvs.openbsd.org 2008/04/04 06:44:26djm2008-05-192-36/+7
| | | | | | [sshd_config.5] oops, some unrelated stuff crept into that commit - backout. spotted by jmc@
* - (djm) OpenBSD CVS Syncdjm2008-05-192-3/+44
| | | | | | | - djm@cvs.openbsd.org 2008/04/04 05:14:38 [sshd_config.5] ChrootDirectory is supported in Match blocks (in fact, it is most useful there). Spotted by Minstrel AT minstrel.org.uk
* - (djm) Force string arguments to replacement setproctitle() thoughdjm2008-05-162-5/+11
| | | | strnvis first. Ok dtucker@
* - (djm) [openbsd-compat/bsd-poll.c] Include stdlib.h to avoid compile-djm2008-04-042-2/+7
| | | | time warnings on LynxOS. Patch from ops AT iki.fi
* - (djm) Release 5.0p1V_5_0_P1djm2008-04-031-1/+2
|
* - (djm) [README] Update link to release notesdjm2008-04-032-3/+4
|
* - (djm) [contrib/caldera/openssh.spec contrib/redhat/openssh.spec]djm2008-04-034-6/+17
| | | | [contrib/suse/openssh.spec] Crank version numbers in RPM spec files
* - djm@cvs.openbsd.org 2008/04/03 09:50:14djm2008-04-032-3/+6
| | | | | [version.h] openssh-5.0
* - jmc@cvs.openbsd.org 2008/03/27 22:37:57djm2008-04-032-4/+7
| | | | | [sshd.8] remove trailing whitespace;
* - markus@cvs.openbsd.org 2008/04/02 15:36:51djm2008-04-022-5/+9
| | | | | | [channels.c] avoid possible hijacking of x11-forwarded connections (back out 1.183) CVE-2008-1483; ok djm@
* - (djm) Release 4.9p1djm2008-03-271-1/+2
|
* - (djm) [contrib/caldera/openssh.spec contrib/redhat/openssh.spec]djm2008-03-274-6/+8
| | | | [contrib/suse/openssh.spec] Crank version numbers in RPM spec files
* - (djm) [README] Update link to release notesdjm2008-03-272-3/+4
|
* - (djm) [regress/Makefile] cleanup PuTTY interop test droppingsdjm2008-03-272-2/+6
|
* - (djm) [configure.ac] --with-selinux toodjm2008-03-272-4/+5
|
* - (djm) [configure.ac] fix alignment of --without-stackprotect descriptiondjm2008-03-272-4/+5
|
* - djm@cvs.openbsd.org 2008/03/24 21:46:54djm2008-03-272-13/+6
| | | | | | [regress/sftp-badcmds.sh] disable no-replace rename test now that we prefer a POSIX rename; spotted by dkrause@
* - djm@cvs.openbsd.org 2008/03/27 00:16:49djm2008-03-272-3/+6
| | | | | [version.h] openssh-4.9
* - djm@cvs.openbsd.org 2008/03/26 21:28:14djm2008-03-275-7/+23
| | | | | [auth-options.c auth-options.h session.c sshd.8] add no-user-rc authorized_keys option to disable execution of ~/.ssh/rc
* - djm@cvs.openbsd.org 2008/03/25 23:01:41djm2008-03-272-3/+6
| | | | | [session.c] last patch had backwards test; spotted by termim AT gmail.com
* - djm@cvs.openbsd.org 2008/03/25 11:58:02djm2008-03-273-7/+14
| | | | | | [session.c sshd_config.5] ignore ~/.ssh/rc if a sshd_config ForceCommand is specified; from dtucker@ ok deraadt@ djm@
* - deraadt@cvs.openbsd.org 2008/03/24 16:11:07djm2008-03-272-4/+11
| | | | | | | | | [monitor_fdpass.c] msg_controllen has to be CMSG_SPACE so that the kernel can account for each cmsg_len (ie. msg_controllen = sum of CMSG_ALIGN(cmsg_len). This works now that kernel fd passing has been fixed to accept a bit of sloppiness because of this ABI repair. lots of discussion with kettenis
* - djm@cvs.openbsd.org 2008/03/23 12:54:01djm2008-03-262-7/+27
| | | | | | | | | | [sftp-client.c] prefer POSIX-style file renaming over filexfer rename behaviour if the server supports the posix-rename@openssh.com extension. Note that the old (filexfer) behaviour would refuse to clobber an existing file. Users who depended on this should adjust their sftp(1) usage. ok deraadt@ markus@
* - deraadt@cvs.openbsd.org 2008/03/15 16:19:02djm2008-03-262-4/+9
| | | | | | | [monitor_fdpass.c] Repair the simple cases for msg_controllen where it should just be CMSG_SIZE(sizeof(int)), not sizeof(buffer) which may be larger because of alignment; ok kettenis hshoexer
* - deraadt@cvs.openbsd.org 2008/03/13 01:49:53djm2008-03-262-9/+14
| | | | | | [monitor_fdpass.c] Correct CMSG_SPACE and CMSG_LEN usage everywhere in the tree. Due to an extensive discussion with otto, kettenis, millert, and hshoexer