OpenBSD CVS

CVS log for src/usr.bin/ssh/channels.h


[BACK] Up to [local] / src / usr.bin / ssh

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.154 / (download) - annotate - [select for diffs], Mon Dec 18 14:47:20 2023 UTC (4 months, 4 weeks ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, HEAD
Changes since 1.153: +2 -1 lines
Diff to previous 1.153 (colored)

stricter handling of channel window limits

This makes ssh/sshd more strict in handling non-compliant peers that
send more data than the advertised channel window allows. Previously
the additional data would be silently discarded. This change will
cause ssh/sshd to terminate the connection if the channel window is
exceeded by more than a small grace allowance.

ok markus@

Revision 1.153 / (download) - annotate - [select for diffs], Wed Nov 15 22:51:49 2023 UTC (6 months ago) by djm
Branch: MAIN
Changes since 1.152: +2 -1 lines
Diff to previous 1.152 (colored)

when deciding whether to enable keystroke timing obfuscation,
only consider enabling it when a channel with a tty is open.

Avoids turning on the obfucation when X11 forwarding only is in use,
which slows it right down. Reported by Roger Marsh

Revision 1.152 / (download) - annotate - [select for diffs], Mon Sep 4 00:01:46 2023 UTC (8 months, 1 week ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_7_4_BASE, OPENBSD_7_4
Changes since 1.151: +2 -2 lines
Diff to previous 1.151 (colored)

make channel_output_poll() return a flag indicating whether channel
data was enqueued. Will be used to improve keystroke timing
obfuscation. Problem spotted by / tested by naddy@

Revision 1.151 / (download) - annotate - [select for diffs], Tue Jul 4 03:59:21 2023 UTC (10 months, 1 week ago) by dlg
Branch: MAIN
Changes since 1.150: +2 -2 lines
Diff to previous 1.150 (colored)

add support for unix domain sockets to ssh -W

ok djm@ dtucker@

Revision 1.150 / (download) - annotate - [select for diffs], Mon Jun 5 13:24:36 2023 UTC (11 months, 1 week ago) by millert
Branch: MAIN
Changes since 1.149: +3 -3 lines
Diff to previous 1.149 (colored)

Store timeouts as int, not u_int as they are limited to INT_MAX.
Fixes sign compare warnings systems with 32-bit time_t due to type
promotion.  OK djm@

Revision 1.149 / (download) - annotate - [select for diffs], Sat Mar 4 03:22:59 2023 UTC (14 months, 2 weeks ago) by dtucker
Branch: MAIN
CVS Tags: OPENBSD_7_3_BASE, OPENBSD_7_3
Changes since 1.148: +2 -2 lines
Diff to previous 1.148 (colored)

Use time_t instead of u_int for remaining x11 timeout checks for 64bit
time_t safety.  From Coverity CIDs 405197 and 405028, ok djm@

Revision 1.148 / (download) - annotate - [select for diffs], Wed Jan 18 02:00:10 2023 UTC (15 months, 4 weeks ago) by djm
Branch: MAIN
Changes since 1.147: +2 -1 lines
Diff to previous 1.147 (colored)

when restoring non-blocking mode to stdio fds, restore exactly
the flags that ssh started with and don't just clobber them with
zero, as this could also remove the append flag from the set;

bz3523; ok dtucker@

Revision 1.147 / (download) - annotate - [select for diffs], Fri Jan 6 02:47:18 2023 UTC (16 months, 1 week ago) by djm
Branch: MAIN
Changes since 1.146: +12 -1 lines
Diff to previous 1.146 (colored)

Implement channel inactivity timeouts

This adds a sshd_config ChannelTimeouts directive that allows channels that
have not seen traffic in a configurable interval to be automatically closed.
Different timeouts may be applied to session, X11, agent and TCP forwarding
channels.

Note: this only affects channels over an opened SSH connection and not
the connection itself. Most clients close the connection when their channels
go away, with a notable exception being ssh(1) in multiplexing mode.

ok markus dtucker

Revision 1.146 / (download) - annotate - [select for diffs], Fri Jan 6 02:42:34 2023 UTC (16 months, 1 week ago) by djm
Branch: MAIN
Changes since 1.145: +4 -2 lines
Diff to previous 1.145 (colored)

Add channel_set_xtype()

This sets an "extended" channel type after channel creation (e.g.
"session:subsystem:sftp") that will be used for setting channel inactivity
timeouts.

ok markus dtucker

Revision 1.145 / (download) - annotate - [select for diffs], Fri Jan 6 02:39:59 2023 UTC (16 months, 1 week ago) by djm
Branch: MAIN
Changes since 1.144: +3 -2 lines
Diff to previous 1.144 (colored)

Add channel_force_close()

This will forcibly close an open channel by simulating read/write errors,
draining the IO buffers and calling the detach function.

Previously the detach function was only ever called during channel garbage
collection, but there was no way to signal the user of a channel (e.g.
session.c) that its channel was being closed deliberately (vs. by the
usual state-machine logic). So this adds an extra "force" argument to the
channel cleanup callback to indicate this condition.

ok markus dtucker

Revision 1.144 / (download) - annotate - [select for diffs], Fri Jan 6 02:38:23 2023 UTC (16 months, 1 week ago) by djm
Branch: MAIN
Changes since 1.143: +3 -2 lines
Diff to previous 1.143 (colored)

replace manual poll/ppoll timeout math with ptimeout API

feedback markus / ok markus dtucker

Revision 1.143 / (download) - annotate - [select for diffs], Thu May 5 00:56:58 2022 UTC (2 years ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2
Changes since 1.142: +2 -2 lines
Diff to previous 1.142 (colored)

channel_new no longer frees remote_name.  So update the comment
accordingly.  As remote_name is not modified, it can be const
as well. From Martin Vahlensieck

Revision 1.142 / (download) - annotate - [select for diffs], Wed Mar 30 21:10:25 2022 UTC (2 years, 1 month ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_7_1_BASE, OPENBSD_7_1
Changes since 1.141: +2 -2 lines
Diff to previous 1.141 (colored)

fix poll() spin when a channel's output fd closes without data in the
channel buffer. Introduce more exact packing of channel fds into the
pollfd array. fixes bz3405 and bz3411; ok deraadt@ markus@

Revision 1.141 / (download) - annotate - [select for diffs], Sat Jan 22 00:49:34 2022 UTC (2 years, 3 months ago) by djm
Branch: MAIN
Changes since 1.140: +4 -1 lines
Diff to previous 1.140 (colored)

add a ssh_packet_process_read() function that reads from a fd
directly into the transport input buffer.

Use this in the client and server mainloops to avoid unnecessary
copying. It also lets us use a more greedy read size without penalty.

Yields a 2-3% performance gain on cipher-speed.sh (in a fairly
unscientific test tbf)

feedback dtucker@ ok markus@

Revision 1.140 / (download) - annotate - [select for diffs], Thu Jan 6 21:48:38 2022 UTC (2 years, 4 months ago) by djm
Branch: MAIN
Changes since 1.139: +11 -7 lines
Diff to previous 1.139 (colored)

convert ssh, sshd mainloops from select() to poll();
feedback & ok deraadt@ and markus@
has been in snaps for a few months

Revision 1.139 / (download) - annotate - [select for diffs], Thu Jan 6 21:46:23 2022 UTC (2 years, 4 months ago) by djm
Branch: MAIN
Changes since 1.138: +11 -1 lines
Diff to previous 1.138 (colored)

prepare for conversion of ssh, sshd mainloop from select() to poll()
by moving FD_SET construction out of channel handlers into separate
functions. ok markus

Revision 1.138 / (download) - annotate - [select for diffs], Wed May 19 01:24:05 2021 UTC (2 years, 11 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE, OPENBSD_7_0
Changes since 1.137: +14 -3 lines
Diff to previous 1.137 (colored)

restore blocking status on stdio fds before close

ssh(1) needs to set file descriptors to non-blocking mode to operate
but it was not restoring the original state on exit. This could cause
problems with fds shared with other programs via the shell, e.g.

> $ cat > test.sh << _EOF
> #!/bin/sh
> {
>         ssh -Fnone -oLogLevel=verbose ::1 hostname
>         cat /usr/share/dict/words
> } | sleep 10
> _EOF
> $ ./test.sh
> Authenticated to ::1 ([::1]:22).
> Transferred: sent 2352, received 2928 bytes, in 0.1 seconds
> Bytes per second: sent 44338.9, received 55197.4
> cat: stdout: Resource temporarily unavailable

This restores the blocking status for fds 0,1,2 (stdio) before ssh(1)
abandons/closes them.

This was reported as bz3280 and GHPR246; ok dtucker@

Revision 1.137 / (download) - annotate - [select for diffs], Sat Apr 3 06:18:40 2021 UTC (3 years, 1 month ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE, OPENBSD_6_9
Changes since 1.136: +2 -2 lines
Diff to previous 1.136 (colored)

highly polished whitespace, mostly fixing spaces-for-tab and bad
indentation on continuation lines. Prompted by GHPR#185

Revision 1.136 / (download) - annotate - [select for diffs], Sat Apr 3 05:54:14 2021 UTC (3 years, 1 month ago) by djm
Branch: MAIN
Changes since 1.135: +3 -3 lines
Diff to previous 1.135 (colored)

whitespace (tab after space)

Revision 1.135 / (download) - annotate - [select for diffs], Sun Sep 20 05:47:25 2020 UTC (3 years, 7 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8
Changes since 1.134: +4 -1 lines
Diff to previous 1.134 (colored)

cap channel input buffer size at 16MB; avoids high memory use when
peer advertises a large window but is slow to consume the data we
send (e.g. because of a slow network)

reported by Pierre-Yves David

fix with & ok markus@

Revision 1.134 / (download) - annotate - [select for diffs], Sun Jul 5 23:59:45 2020 UTC (3 years, 10 months ago) by djm
Branch: MAIN
Changes since 1.133: +3 -3 lines
Diff to previous 1.133 (colored)

some language improvements; ok markus

Revision 1.133 / (download) - annotate - [select for diffs], Sat Jan 25 22:49:38 2020 UTC (4 years, 3 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_6_7_BASE, OPENBSD_6_7
Changes since 1.132: +9 -1 lines
Diff to previous 1.132 (colored)

add a comment describing the ranges of channel IDs that we use;
requested by markus@

Revision 1.132 / (download) - annotate - [select for diffs], Thu Oct 4 00:10:11 2018 UTC (5 years, 7 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.131: +2 -1 lines
Diff to previous 1.131 (colored)

include a little more information about the status and disposition of
channel's extended (stderr) fd; makes debugging some things a bit easier.
No behaviour change.

Revision 1.131 / (download) - annotate - [select for diffs], Wed Jun 6 18:22:41 2018 UTC (5 years, 11 months ago) by djm
Branch: MAIN
Changes since 1.130: +15 -11 lines
Diff to previous 1.130 (colored)

Add a PermitListen directive to control which server-side addresses
may be listened on when the client requests remote forwarding (ssh -R).

This is the converse of the existing PermitOpen directive and this
includes some refactoring to share much of its implementation.

feedback and ok markus@

Revision 1.130 / (download) - annotate - [select for diffs], Thu Sep 21 19:16:53 2017 UTC (6 years, 7 months ago) by markus
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.129: +4 -2 lines
Diff to previous 1.129 (colored)

Add 'reverse' dynamic forwarding which combines dynamic forwarding
(-D) with remote forwarding (-R) where the remote-forwarded port
expects SOCKS-requests.

The SSH server code is unchanged and the parsing happens at the SSH
clients side. Thus the full SOCKS-request is sent over the forwarded
channel and the client parses c->output. Parsing happens in
channel_before_prepare_select(), _before_ the select bitmask is
computed in the pre[] handlers, but after network input processing
in the post[] handlers.

help and ok djm@

Revision 1.129 / (download) - annotate - [select for diffs], Tue Sep 12 06:35:32 2017 UTC (6 years, 8 months ago) by djm
Branch: MAIN
Changes since 1.128: +5 -4 lines
Diff to previous 1.128 (colored)

Make remote channel ID a u_int

Previously we tracked the remote channel IDs in an int, but this is
strictly incorrect: the wire protocol uses uint32 and there is nothing
in-principle stopping a SSH implementation from sending, say, 0xffff0000.

In practice everyone numbers their channels sequentially, so this has
never been a problem.

ok markus@

Revision 1.128 / (download) - annotate - [select for diffs], Tue Sep 12 06:32:07 2017 UTC (6 years, 8 months ago) by djm
Branch: MAIN
Changes since 1.127: +101 -79 lines
Diff to previous 1.127 (colored)

refactor channels.c

Move static state to a "struct ssh_channels" that is allocated at
runtime and tracked as a member of struct ssh.

Explicitly pass "struct ssh" to all channels functions.

Replace use of the legacy packet APIs in channels.c.

Rework sshd_config PermitOpen handling: previously the configuration
parser would call directly into the channels layer. After the refactor
this is not possible, as the channels structures are allocated at
connection time and aren't available when the configuration is parsed.
The server config parser now tracks PermitOpen itself and explicitly
configures the channels code later.

ok markus@

Revision 1.127 / (download) - annotate - [select for diffs], Wed Aug 30 03:59:08 2017 UTC (6 years, 8 months ago) by djm
Branch: MAIN
Changes since 1.126: +4 -4 lines
Diff to previous 1.126 (colored)

pass packet state down to some of the channels function (more
to come...); ok markus@

Revision 1.126 / (download) - annotate - [select for diffs], Tue May 30 14:23:52 2017 UTC (6 years, 11 months ago) by markus
Branch: MAIN
Changes since 1.125: +12 -10 lines
Diff to previous 1.125 (colored)

protocol handlers all get struct ssh passed; ok djm@

Revision 1.125 / (download) - annotate - [select for diffs], Fri May 26 19:35:50 2017 UTC (6 years, 11 months ago) by markus
Branch: MAIN
Changes since 1.124: +1 -3 lines
Diff to previous 1.124 (colored)

remove SSH_CHANNEL_XXX_DRAINING (ssh1 only); ok djm@

Revision 1.124 / (download) - annotate - [select for diffs], Fri May 26 19:34:12 2017 UTC (6 years, 11 months ago) by markus
Branch: MAIN
Changes since 1.123: +1 -2 lines
Diff to previous 1.123 (colored)

remove channel_input_close_confirmation (ssh1 only); ok djm@

Revision 1.123 / (download) - annotate - [select for diffs], Sun Apr 30 23:28:41 2017 UTC (7 years ago) by djm
Branch: MAIN
Changes since 1.122: +1 -9 lines
Diff to previous 1.122 (colored)

obliterate ssh1.h and some dead code that used it

ok markus@

Revision 1.122 / (download) - annotate - [select for diffs], Sun Apr 30 23:13:25 2017 UTC (7 years ago) by djm
Branch: MAIN
Changes since 1.121: +3 -3 lines
Diff to previous 1.121 (colored)

remove compat20/compat13/compat15 variables

ok markus@

Revision 1.121 / (download) - annotate - [select for diffs], Wed Feb 1 02:59:09 2017 UTC (7 years, 3 months ago) by dtucker
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.120: +3 -2 lines
Diff to previous 1.120 (colored)

Return true reason for port forwarding failures where feasible rather
than always "administratively prohibited".  bz#2674, ok djm@

Revision 1.120 / (download) - annotate - [select for diffs], Tue Oct 18 17:32:54 2016 UTC (7 years, 6 months ago) by dtucker
Branch: MAIN
Changes since 1.119: +1 -2 lines
Diff to previous 1.119 (colored)

Remove channel_input_port_forward_request(); the only caller was the
recently-removed SSH1 server code so it's now dead code.  ok markus@

Revision 1.119 / (download) - annotate - [select for diffs], Fri Sep 30 09:19:13 2016 UTC (7 years, 7 months ago) by markus
Branch: MAIN
Changes since 1.118: +10 -2 lines
Diff to previous 1.118 (colored)

ssh proxy mux mode (-O proxy; idea from Simon Tatham):
- mux client speaks the ssh-packet protocol directly over unix-domain socket.
- mux server acts as a proxy, translates channel IDs and relays to the server.
- no filedescriptor passing necessary.
- combined with unix-domain forwarding it's even possible to run mux client
  and server on different machines.
feedback & ok djm@

Revision 1.118 / (download) - annotate - [select for diffs], Wed Jul 1 02:26:31 2015 UTC (8 years, 10 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.117: +2 -1 lines
Diff to previous 1.117 (colored)

better refuse ForwardX11Trusted=no connections attempted after
ForwardX11Timeout expires; reported by Jann Horn

Revision 1.117 / (download) - annotate - [select for diffs], Fri May 8 06:45:13 2015 UTC (9 years ago) by djm
Branch: MAIN
Changes since 1.116: +2 -2 lines
Diff to previous 1.116 (colored)

moar whitespace at eol

Revision 1.116 / (download) - annotate - [select for diffs], Mon Jan 19 20:07:45 2015 UTC (9 years, 3 months ago) by markus
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.115: +14 -14 lines
Diff to previous 1.115 (colored)

move dispatch to struct ssh; ok djm@

Revision 1.115 / (download) - annotate - [select for diffs], Tue Jul 15 15:54:14 2014 UTC (9 years, 10 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.114: +16 -12 lines
Diff to previous 1.114 (colored)

Add support for Unix domain socket forwarding.  A remote TCP port
may be forwarded to a local Unix domain socket and vice versa or
both ends may be a Unix domain socket.  This is a reimplementation
of the streamlocal patches by William Ahern from:
    http://www.25thandclement.com/~william/projects/streamlocal.html
OK djm@ markus@

Revision 1.114 / (download) - annotate - [select for diffs], Fri Jun 27 16:41:56 2014 UTC (9 years, 10 months ago) by markus
Branch: MAIN
Changes since 1.113: +3 -2 lines
Diff to previous 1.113 (colored)

fix remote fwding with same listen port but different listen address
with gerhard@, ok djm@

Revision 1.113 / (download) - annotate - [select for diffs], Fri Jun 7 15:37:52 2013 UTC (10 years, 11 months ago) by dtucker
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.112: +3 -2 lines
Diff to previous 1.112 (colored)

Add an "ABANDONED" channel state and use for mux sessions that are
disconnected via the ~. escape sequence.  Channels in this state will
be able to close if the server responds, but do not count as active channels.
This means that if you ~. all of the mux clients when using ControlPersist
on a broken network, the backgrounded mux master will exit when the
Control Persist time expires rather than hanging around indefinitely.
bz#1917, also reported and tested by tedu@.  ok djm@ markus@.

Revision 1.112 / (download) - annotate - [select for diffs], Sun Jun 2 21:01:51 2013 UTC (10 years, 11 months ago) by dtucker
Branch: MAIN
Changes since 1.111: +2 -2 lines
Diff to previous 1.111 (colored)

typo in comment

Revision 1.111 / (download) - annotate - [select for diffs], Wed Apr 11 13:16:19 2012 UTC (12 years, 1 month ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2
Changes since 1.110: +4 -2 lines
Diff to previous 1.110 (colored)

don't spin in accept() when out of fds (ENFILE/ENFILE) - back off for a
while; ok deraadt@ markus@

Revision 1.110 / (download) - annotate - [select for diffs], Thu Mar 29 23:54:36 2012 UTC (12 years, 1 month ago) by dtucker
Branch: MAIN
Changes since 1.109: +2 -1 lines
Diff to previous 1.109 (colored)

Add PermitOpen none option based on patch from Loganaden Velvindron
(bz #1949).  ok djm@

Revision 1.109 / (download) - annotate - [select for diffs], Fri Sep 23 07:45:05 2011 UTC (12 years, 7 months ago) by markus
Branch: MAIN
CVS Tags: OPENBSD_5_1_BASE, OPENBSD_5_1
Changes since 1.108: +2 -1 lines
Diff to previous 1.108 (colored)

unbreak remote portforwarding with dynamic allocated listen ports:
1) send the actual listen port in the open message (instead of 0).
   this allows multiple forwardings with a dynamic listen port
2) update the matching permit-open entry, so we can identify where
   to connect to
report: den at skbkontur.ru and P. Szczygielski
feedback and ok djm@

Revision 1.108 / (download) - annotate - [select for diffs], Fri Sep 23 00:22:04 2011 UTC (12 years, 7 months ago) by dtucker
Branch: MAIN
Changes since 1.107: +2 -1 lines
Diff to previous 1.107 (colored)

Add wildcard support to PermitOpen, allowing things like "PermitOpen
localhost:*".  bz #1857, ok djm markus.

Revision 1.107 / (download) - annotate - [select for diffs], Sat Sep 10 22:26:34 2011 UTC (12 years, 8 months ago) by markus
Branch: MAIN
Changes since 1.106: +4 -2 lines
Diff to previous 1.106 (colored)

support cancellation of local/dynamic forwardings from ~C commandline;
ok & feedback djm@

Revision 1.106 / (download) - annotate - [select for diffs], Fri Sep 9 22:46:44 2011 UTC (12 years, 8 months ago) by djm
Branch: MAIN
Changes since 1.105: +4 -2 lines
Diff to previous 1.105 (colored)

support for cancelling local and remote port forwards via the multiplex
socket. Use ssh -O cancel -L xx:xx:xx -R yy:yy:yy user@host" to request
the cancellation of the specified forwardings; ok markus@

Revision 1.105 / (download) - annotate - [select for diffs], Wed Jun 22 22:08:42 2011 UTC (12 years, 10 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE, OPENBSD_5_0
Changes since 1.104: +2 -2 lines
Diff to previous 1.104 (colored)

hook up a channel confirm callback to warn the user then requested X11
forwarding was refused by the server; ok markus@

Revision 1.104 / (download) - annotate - [select for diffs], Fri May 14 23:29:23 2010 UTC (14 years ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.103: +5 -3 lines
Diff to previous 1.103 (colored)

Pause the mux channel while waiting for reply from aynch callbacks.
Prevents misordering of replies if new requests arrive while waiting.

Extend channel open confirm callback to allow signalling failure
conditions as well as success. Use this to 1) fix a memory leak, 2)
start using the above pause mechanism and 3) delay sending a success/
failure message on mux slave session open until we receive a reply from
the server.

motivated by and with feedback from markus@

Revision 1.103 / (download) - annotate - [select for diffs], Tue Jan 26 01:28:35 2010 UTC (14 years, 3 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.102: +14 -4 lines
Diff to previous 1.102 (colored)

rewrite ssh(1) multiplexing code to a more sensible protocol.

The new multiplexing code uses channels for the listener and
accepted control sockets to make the mux master non-blocking, so
no stalls when processing messages from a slave.

avoid use of fatal() in mux master protocol parsing so an errant slave
process cannot take down a running master.

implement requesting of port-forwards over multiplexed sessions. Any
port forwards requested by the slave are added to those the master has
established.

add support for stdio forwarding ("ssh -W host:port ...") in mux slaves.

document master/slave mux protocol so that other tools can use it to
control a running ssh(1). Note: there are no guarantees that this
protocol won't be incompatibly changed (though it is versioned).

feedback Salvador Fandino, dtucker@
channel changes ok markus@

Revision 1.102 / (download) - annotate - [select for diffs], Mon Jan 11 01:39:46 2010 UTC (14 years, 4 months ago) by dtucker
Branch: MAIN
Changes since 1.101: +2 -1 lines
Diff to previous 1.101 (colored)

Add a 'netcat mode' (ssh -W).  This connects stdio on the client to a single
port forward on the server.  This allows, for example, using ssh as
a ProxyCommand to route connections via intermediate servers.
bz #1618, man page help from jmc@, ok markus@

Revision 1.101 / (download) - annotate - [select for diffs], Sat Jan 9 23:04:13 2010 UTC (14 years, 4 months ago) by dtucker
Branch: MAIN
Changes since 1.100: +1 -2 lines
Diff to previous 1.100 (colored)

Remove RoutingDomain from ssh since it's now not needed.  It can be replaced
with "route exec" or "nc -V" as a proxycommand.  "route exec" also ensures
that trafic such as DNS lookups stays withing the specified routingdomain.

For example (from reyk):
# route -T 2 exec /usr/sbin/sshd
or inherited from the parent process
$ route -T 2 exec sh
$ ssh 10.1.2.3

ok deraadt@ markus@ stevesk@ reyk@

Revision 1.100 / (download) - annotate - [select for diffs], Wed Nov 11 21:37:03 2009 UTC (14 years, 6 months ago) by markus
Branch: MAIN
Changes since 1.99: +6 -2 lines
Diff to previous 1.99 (colored)

fix race condition in x11/agent channel allocation: don't read after
the end of the select read/write fdset and make sure a reused FD
is not touched before the pre-handlers are called.
with and ok djm@

Revision 1.99 / (download) - annotate - [select for diffs], Wed Oct 28 16:38:18 2009 UTC (14 years, 6 months ago) by reyk
Branch: MAIN
Changes since 1.98: +2 -1 lines
Diff to previous 1.98 (colored)

Allow to set the rdomain in ssh/sftp/scp/sshd and ssh-keyscan.

ok markus@

Revision 1.98 / (download) - annotate - [select for diffs], Thu Feb 12 03:00:56 2009 UTC (15 years, 3 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.97: +2 -2 lines
Diff to previous 1.97 (colored)

support remote port forwarding with a zero listen port (-R0:...) to
dyamically allocate a listen port at runtime (this is actually
specified in rfc4254); bz#1003 ok markus@

Revision 1.97 / (download) - annotate - [select for diffs], Thu Jan 22 09:46:01 2009 UTC (15 years, 3 months ago) by djm
Branch: MAIN
Changes since 1.96: +2 -4 lines
Diff to previous 1.96 (colored)

make Channel->path an allocated string, saving a few bytes here and
there and fixing bz#1380 in the process; ok markus@

Revision 1.96 / (download) - annotate - [select for diffs], Sun Jun 15 20:06:26 2008 UTC (15 years, 11 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.95: +2 -2 lines
Diff to previous 1.95 (colored)

don't call isatty() on a pty master, instead pass a flag down to
channel_set_fds() indicating that te fds refer to a tty. Fixes a
hang on exit on Solaris (bz#1463) in portable but is actually
a generic bug; ok dtucker deraadt markus

Revision 1.95 / (download) - annotate - [select for diffs], Thu Jun 12 15:19:17 2008 UTC (15 years, 11 months ago) by djm
Branch: MAIN
Changes since 1.94: +4 -2 lines
Diff to previous 1.94 (colored)

The multiplexing escape char handler commit last night introduced a
small memory leak per session; plug it.

Revision 1.94 / (download) - annotate - [select for diffs], Thu Jun 12 03:40:52 2008 UTC (15 years, 11 months ago) by djm
Branch: MAIN
Changes since 1.93: +3 -2 lines
Diff to previous 1.93 (colored)

Enable ~ escapes for multiplex slave sessions; give each channel
its own escape state and hook the escape filters up to muxed
channels. bz #1331

Mux slaves do not currently support the ~^Z and ~& escapes.

NB. this change cranks the mux protocol version, so a new ssh
mux client will not be able to connect to a running old ssh
mux master.

ok dtucker@

Revision 1.93 / (download) - annotate - [select for diffs], Tue Jun 10 04:50:25 2008 UTC (15 years, 11 months ago) by dtucker
Branch: MAIN
Changes since 1.92: +2 -1 lines
Diff to previous 1.92 (colored)

Add extended test mode (-T) and connection parameters for test mode (-C).
-T causes sshd to write its effective configuration to stdout and exit.
-C causes any relevant Match rules to be applied before output.  The
combination allows tesing of the parser and config files.  ok deraadt djm

Revision 1.92 / (download) - annotate - [select for diffs], Fri May 9 16:21:13 2008 UTC (16 years ago) by markus
Branch: MAIN
Changes since 1.91: +2 -1 lines
Diff to previous 1.91 (colored)

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@

Revision 1.91 / (download) - annotate - [select for diffs], Fri May 9 04:55:56 2008 UTC (16 years ago) by djm
Branch: MAIN
Changes since 1.90: +16 -5 lines
Diff to previous 1.90 (colored)

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@

Revision 1.90 / (download) - annotate - [select for diffs], Thu May 8 12:02:23 2008 UTC (16 years ago) by djm
Branch: MAIN
Changes since 1.89: +21 -5 lines
Diff to previous 1.89 (colored)

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)

Revision 1.89 / (download) - annotate - [select for diffs], Mon Jun 11 09:14:00 2007 UTC (16 years, 11 months ago) by markus
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.88: +3 -3 lines
Diff to previous 1.88 (colored)

increase default channel windows; ok djm

Revision 1.79.2.2 / (download) - annotate - [select for diffs], Fri Oct 6 03:19:32 2006 UTC (17 years, 7 months ago) by brad
Branch: OPENBSD_3_8
Changes since 1.79.2.1: +5 -5 lines
Diff to previous 1.79.2.1 (colored) to branchpoint 1.79 (colored) next main 1.80 (colored)

upgrade to OpenSSH 4.4

Revision 1.83.2.1 / (download) - annotate - [select for diffs], Sat Sep 30 04:06:50 2006 UTC (17 years, 7 months ago) by brad
Branch: OPENBSD_3_9
Changes since 1.83: +5 -5 lines
Diff to previous 1.83 (colored) next main 1.84 (colored)

upgrade to OpenSSH 4.4

Revision 1.88 / (download) - annotate - [select for diffs], Thu Aug 3 03:34:42 2006 UTC (17 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.87: +1 -3 lines
Diff to previous 1.87 (colored)

almost entirely get rid of the culture of ".h files that include .h files"
ok djm, sort of ok stevesk
makes the pain stop in one easy step

Revision 1.87 / (download) - annotate - [select for diffs], Fri Jul 21 12:43:36 2006 UTC (17 years, 10 months ago) by dtucker
Branch: MAIN
Changes since 1.86: +2 -2 lines
Diff to previous 1.86 (colored)

Make PermitOpen take a list of permitted ports and act more like most other
keywords (ie the first match is the effective setting).  This also makes it
easier to override a previously set PermitOpen.  ok djm@

Revision 1.86 / (download) - annotate - [select for diffs], Mon Jul 17 12:06:00 2006 UTC (17 years, 10 months ago) by dtucker
Branch: MAIN
Changes since 1.85: +3 -1 lines
Diff to previous 1.85 (colored)

Add PermitOpen directive to sshd_config which is equivalent to the
"permitopen" key option.  Allows server admin to allow TCP port forwarding
only two specific host/port pairs.  Useful when combined with Match.

If permitopen is used in both sshd_config and a key option, both must allow
a given connection before it will be permitted.

Note that users can still use external forwarders such as netcat, so to be
those must be controlled too for the limits to be effective.

Feedback & ok djm@, man page corrections & ok jmc@.

Revision 1.85 / (download) - annotate - [select for diffs], Tue Jul 11 18:50:47 2006 UTC (17 years, 10 months ago) by markus
Branch: MAIN
Changes since 1.84: +3 -3 lines
Diff to previous 1.84 (colored)

add ExitOnForwardFailure: terminate the connection if ssh(1)
cannot set up all requested dynamic, local, and remote port
forwardings. ok djm, dtucker, stevesk, jmc

Revision 1.84 / (download) - annotate - [select for diffs], Sat Mar 25 22:22:42 2006 UTC (18 years, 1 month ago) by djm
Branch: MAIN
Changes since 1.83: +1 -1 lines
Diff to previous 1.83 (colored)

standardise spacing in $OpenBSD$ tags; requested by deraadt@

Revision 1.79.2.1 / (download) - annotate - [select for diffs], Fri Feb 3 03:01:56 2006 UTC (18 years, 3 months ago) by brad
Branch: OPENBSD_3_8
Changes since 1.79: +14 -6 lines
Diff to previous 1.79 (colored)

upgrade to OpenSSH 4.3

Revision 1.76.2.2 / (download) - annotate - [select for diffs], Fri Feb 3 02:53:44 2006 UTC (18 years, 3 months ago) by brad
Branch: OPENBSD_3_7
Changes since 1.76.2.1: +14 -6 lines
Diff to previous 1.76.2.1 (colored) to branchpoint 1.76 (colored) next main 1.77 (colored)

upgrade to OpenSSH 4.3

Revision 1.83 / (download) - annotate - [select for diffs], Fri Dec 30 15:56:37 2005 UTC (18 years, 4 months ago) by reyk
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE
Branch point for: OPENBSD_3_9
Changes since 1.82: +8 -4 lines
Diff to previous 1.82 (colored)

add channel output filter interface.

ok djm@, suggested by markus@

Revision 1.82 / (download) - annotate - [select for diffs], Mon Dec 12 13:46:18 2005 UTC (18 years, 5 months ago) by markus
Branch: MAIN
Changes since 1.81: +2 -1 lines
Diff to previous 1.81 (colored)

make sure protocol messages for internal channels are ignored.
allow adjust messages for non-open channels; with and ok djm@

Revision 1.81 / (download) - annotate - [select for diffs], Tue Dec 6 22:38:27 2005 UTC (18 years, 5 months ago) by reyk
Branch: MAIN
Changes since 1.80: +3 -1 lines
Diff to previous 1.80 (colored)

Add support for tun(4) forwarding over OpenSSH, based on an idea and
initial channel code bits by markus@. This is a simple and easy way to
use OpenSSH for ad hoc virtual private network connections, e.g.
administrative tunnels or secure wireless access. It's based on a new
ssh channel and works similar to the existing TCP forwarding support,
except that it depends on the tun(4) network interface on both ends of
the connection for layer 2 or layer 3 tunneling. This diff also adds
support for LocalCommand in the ssh(1) client.

ok djm@, markus@, jmc@ (manpages), tested and discussed with others

Revision 1.80 / (download) - annotate - [select for diffs], Mon Oct 10 10:23:08 2005 UTC (18 years, 7 months ago) by djm
Branch: MAIN
Changes since 1.79: +4 -3 lines
Diff to previous 1.79 (colored)

fix regression I introduced in 4.2: X11 forwardings initiated after
a session has exited (e.g. "(sleep 5; xterm) &") would not start.
bz #1086 reported by t8m AT centrum.cz; ok markus@ dtucker@

Revision 1.76.2.1 / (download) - annotate - [select for diffs], Sun Sep 4 18:40:01 2005 UTC (18 years, 8 months ago) by brad
Branch: OPENBSD_3_7
Changes since 1.76: +5 -4 lines
Diff to previous 1.76 (colored)

upgrade to OpenSSH 4.2

Revision 1.74.2.2 / (download) - annotate - [select for diffs], Fri Sep 2 03:44:59 2005 UTC (18 years, 8 months ago) by brad
Branch: OPENBSD_3_6
Changes since 1.74.2.1: +5 -4 lines
Diff to previous 1.74.2.1 (colored) to branchpoint 1.74 (colored) next main 1.75 (colored)

upgrade to OpenSSH 4.2

Revision 1.79 / (download) - annotate - [select for diffs], Sun Jul 17 06:49:04 2005 UTC (18 years, 10 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE
Branch point for: OPENBSD_3_8
Changes since 1.78: +2 -2 lines
Diff to previous 1.78 (colored)

Fix a number of X11 forwarding channel leaks:
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@

Revision 1.78 / (download) - annotate - [select for diffs], Fri Jul 8 09:41:33 2005 UTC (18 years, 10 months ago) by markus
Branch: MAIN
Changes since 1.77: +2 -2 lines
Diff to previous 1.77 (colored)

race when efd gets closed while there is still buffered data:
change CHANNEL_EFD_OUTPUT_ACTIVE()
	1) c->efd must always be valid AND
	2a) no EOF has been seen OR
	2b) there is buffered data
report, initial fix and testing Chuck Cranor

Revision 1.77 / (download) - annotate - [select for diffs], Thu Jun 16 03:38:36 2005 UTC (18 years, 11 months ago) by djm
Branch: MAIN
Changes since 1.76: +3 -2 lines
Diff to previous 1.76 (colored)

move x11_get_proto from ssh.c to clientloop.c, to make muliplexed xfwd easier
later; ok deraadt@

Revision 1.71.2.2 / (download) - annotate - [select for diffs], Thu Mar 10 17:15:04 2005 UTC (19 years, 2 months ago) by brad
Branch: OPENBSD_3_5
Changes since 1.71.2.1: +7 -4 lines
Diff to previous 1.71.2.1 (colored) to branchpoint 1.71 (colored) next main 1.72 (colored)

upgrade to OpenSSH 4.0

Revision 1.74.2.1 / (download) - annotate - [select for diffs], Thu Mar 10 16:28:27 2005 UTC (19 years, 2 months ago) by brad
Branch: OPENBSD_3_6
Changes since 1.74: +7 -4 lines
Diff to previous 1.74 (colored)

upgrade to OpenSSH 4.0

Revision 1.76 / (download) - annotate - [select for diffs], Tue Mar 1 10:09:52 2005 UTC (19 years, 2 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE
Branch point for: OPENBSD_3_7
Changes since 1.75: +6 -4 lines
Diff to previous 1.75 (colored)

bz#413: allow optional specification of bind address for port forwardings.
Patch originally by Dan Astorian, but worked on by several people
Adds GatewayPorts=clientspecified option on server to allow remote forwards
to bind to client-specified ports.

ok markus@

Revision 1.75 / (download) - annotate - [select for diffs], Fri Oct 29 21:47:15 2004 UTC (19 years, 6 months ago) by djm
Branch: MAIN
Changes since 1.74: +2 -1 lines
Diff to previous 1.74 (colored)

fix some window size change bugs for multiplexed connections: windows sizes
were not being updated if they had changed after ~^Z suspends and SIGWINCH
was not being processed unless the first connection had requested a tty;
ok markus

Revision 1.70.6.2 / (download) - annotate - [select for diffs], Thu Aug 19 22:37:31 2004 UTC (19 years, 9 months ago) by brad
Branch: OPENBSD_3_4
Changes since 1.70.6.1: +8 -3 lines
Diff to previous 1.70.6.1 (colored) to branchpoint 1.70 (colored) next main 1.71 (colored)

upgrade to OpenSSH 3.9

Revision 1.71.2.1 / (download) - annotate - [select for diffs], Thu Aug 19 04:13:26 2004 UTC (19 years, 9 months ago) by brad
Branch: OPENBSD_3_5
Changes since 1.71: +8 -3 lines
Diff to previous 1.71 (colored)

upgrade to OpenSSH 3.9

Revision 1.74 / (download) - annotate - [select for diffs], Wed Aug 11 21:43:04 2004 UTC (19 years, 9 months ago) by avsm
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE
Branch point for: OPENBSD_3_6
Changes since 1.73: +2 -2 lines
Diff to previous 1.73 (colored)

some signed/unsigned int comparison cleanups; markus@ ok

Revision 1.73 / (download) - annotate - [select for diffs], Sun Jun 13 15:03:02 2004 UTC (19 years, 11 months ago) by djm
Branch: MAIN
Changes since 1.72: +5 -2 lines
Diff to previous 1.72 (colored)

implement session multiplexing in the client (the server has supported this
since 2.0); ok markus@

Revision 1.72 / (download) - annotate - [select for diffs], Fri May 21 11:33:11 2004 UTC (20 years ago) by djm
Branch: MAIN
Changes since 1.71: +3 -1 lines
Diff to previous 1.71 (colored)

bz #756: add support for the cancel-tcpip-forward request for the server and
the client (through the ~C commandline). reported by z3p AT twistedmatrix.com;
ok markus@

Revision 1.70.4.1 / (download) - annotate - [select for diffs], Thu Mar 4 18:18:15 2004 UTC (20 years, 2 months ago) by brad
Branch: OPENBSD_3_3
Changes since 1.70: +1 -2 lines
Diff to previous 1.70 (colored) next main 1.71 (colored)

upgrade to OpenSSH 3.8upgrade to OpenSSH 3.8upgrade to OpenSSH 3.8

Revision 1.70.6.1 / (download) - annotate - [select for diffs], Sat Feb 28 03:51:33 2004 UTC (20 years, 2 months ago) by brad
Branch: OPENBSD_3_4
Changes since 1.70: +1 -2 lines
Diff to previous 1.70 (colored)

upgrade to OpenSSH 3.8

Revision 1.71 / (download) - annotate - [select for diffs], Tue Sep 23 20:41:11 2003 UTC (20 years, 7 months ago) by markus
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE
Branch point for: OPENBSD_3_5
Changes since 1.70: +1 -2 lines
Diff to previous 1.70 (colored)

move client only agent code to clientloop.c

Revision 1.50.2.5 / (download) - annotate - [select for diffs], Wed Jun 26 18:22:34 2002 UTC (21 years, 10 months ago) by miod
Branch: OPENBSD_3_0
Changes since 1.50.2.4: +9 -9 lines
Diff to previous 1.50.2.4 (colored) to branchpoint 1.50 (colored) next main 1.51 (colored)

There was an update to OpenSSH 3.4, and people rejoiced.

Revision 1.67.2.1 / (download) - annotate - [select for diffs], Wed Jun 26 15:30:37 2002 UTC (21 years, 10 months ago) by jason
Branch: OPENBSD_3_1
Changes since 1.67: +9 -12 lines
Diff to previous 1.67 (colored) next main 1.68 (colored)

Pull in OpenSSH-3.4

Revision 1.70 / (download) - annotate - [select for diffs], Mon Jun 24 14:33:27 2002 UTC (21 years, 10 months ago) by markus
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_3_BASE, OPENBSD_3_2_BASE, OPENBSD_3_2
Branch point for: OPENBSD_3_4, OPENBSD_3_3
Changes since 1.69: +8 -8 lines
Diff to previous 1.69 (colored)

move channel counter to u_int

Revision 1.69 / (download) - annotate - [select for diffs], Sun Jun 23 21:06:41 2002 UTC (21 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.68: +2 -2 lines
Diff to previous 1.68 (colored)

display, screen, row, col, xpixel, ypixel are u_int; markus ok

Revision 1.50.2.4 / (download) - annotate - [select for diffs], Sat Jun 22 07:23:17 2002 UTC (21 years, 11 months ago) by miod
Branch: OPENBSD_3_0
Changes since 1.50.2.3: +1 -4 lines
Diff to previous 1.50.2.3 (colored) to branchpoint 1.50 (colored)

Update OpenSSH to version 3.3 (with local changes, configuration files still
living in /etc and privsep user being nobody).

Revision 1.68 / (download) - annotate - [select for diffs], Mon Jun 10 22:28:41 2002 UTC (21 years, 11 months ago) by markus
Branch: MAIN
Changes since 1.67: +1 -4 lines
Diff to previous 1.67 (colored)

move creation of agent socket to session.c; no need for uidswapping
in channel.c.

Revision 1.31.2.6 / (download) - annotate - [select for diffs], Sun Jun 2 22:56:10 2002 UTC (21 years, 11 months ago) by miod
Branch: OPENBSD_2_9
Changes since 1.31.2.5: +13 -1 lines
Diff to previous 1.31.2.5 (colored) to branchpoint 1.31 (colored) next main 1.32 (colored)

Upgrade to OpenSSH 3.2.3.

Except for improbable compilation error fixes, this should be the last
commit made to the 2.9-STABLE branche. Have fun upgrading.

Revision 1.50.2.3 / (download) - annotate - [select for diffs], Fri May 17 00:03:23 2002 UTC (22 years ago) by miod
Branch: OPENBSD_3_0
Changes since 1.50.2.2: +13 -1 lines
Diff to previous 1.50.2.2 (colored) to branchpoint 1.50 (colored)

Update OpenSSH to version 3.2.2.

Revision 1.67 / (download) - annotate - [select for diffs], Tue Mar 26 22:50:39 2002 UTC (22 years, 1 month ago) by markus
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE
Branch point for: OPENBSD_3_1
Changes since 1.66: +2 -2 lines
Diff to previous 1.66 (colored)

CHANNEL_EFD_OUTPUT_ACTIVE is false for CHAN_CLOSE_RCVD, too

Revision 1.66 / (download) - annotate - [select for diffs], Mon Mar 25 21:13:51 2002 UTC (22 years, 1 month ago) by markus
Branch: MAIN
Changes since 1.65: +13 -1 lines
Diff to previous 1.65 (colored)

don't send stderr data after EOF, accept this from older known (broken)
sshd servers only, fixes http://bugzilla.mindrot.org/show_bug.cgi?id=179

Revision 1.31.2.5 / (download) - annotate - [select for diffs], Sat Mar 9 00:20:44 2002 UTC (22 years, 2 months ago) by miod
Branch: OPENBSD_2_9
Changes since 1.31.2.4: +47 -57 lines
Diff to previous 1.31.2.4 (colored) to branchpoint 1.31 (colored)

Merge OpenSSH 3.1, keeping /etc as configuration files directory.
(i.e. OpenSSH 3.1 + openbsd29_3.1.patch)

Revision 1.22.2.9 / (download) - annotate - [select for diffs], Fri Mar 8 17:04:42 2002 UTC (22 years, 2 months ago) by brad
Branch: OPENBSD_2_8
Changes since 1.22.2.8: +47 -57 lines
Diff to previous 1.22.2.8 (colored) to branchpoint 1.22 (colored) next main 1.23 (colored)

Merge OpenSSH 3.1.

Revision 1.50.2.2 / (download) - annotate - [select for diffs], Thu Mar 7 17:37:46 2002 UTC (22 years, 2 months ago) by jason
Branch: OPENBSD_3_0
Changes since 1.50.2.1: +47 -57 lines
Diff to previous 1.50.2.1 (colored) to branchpoint 1.50 (colored)

Update to OpenSSH-3.1 on 3.0-stable branch

Revision 1.65 / (download) - annotate - [select for diffs], Mon Mar 4 17:27:39 2002 UTC (22 years, 2 months ago) by stevesk
Branch: MAIN
Changes since 1.64: +2 -1 lines
Diff to previous 1.64 (colored)

$OpenBSD$ and RCSID() cleanup: don't use RCSID() in .h files; add
missing RCSID() to .c files and remove dup /*$OpenBSD$*/ from .c
files.  ok markus@

Revision 1.64 / (download) - annotate - [select for diffs], Thu Feb 14 23:28:00 2002 UTC (22 years, 3 months ago) by markus
Branch: MAIN
Changes since 1.63: +8 -8 lines
Diff to previous 1.63 (colored)

increase the SSH v2 window size to 4 packets. comsumes a little
bit more memory for slow receivers but increases througput.

Revision 1.63 / (download) - annotate - [select for diffs], Tue Feb 5 14:32:55 2002 UTC (22 years, 3 months ago) by markus
Branch: MAIN
Changes since 1.62: +1 -2 lines
Diff to previous 1.62 (colored)

merge channel_request() into channel_request_start()

Revision 1.62 / (download) - annotate - [select for diffs], Sun Feb 3 17:58:21 2002 UTC (22 years, 3 months ago) by markus
Branch: MAIN
Changes since 1.61: +3 -5 lines
Diff to previous 1.61 (colored)

generic callbacks are not really used, remove and
add a callback for msg of type SSH2_MSG_CHANNEL_OPEN_CONFIRMATION
ok djm@

Revision 1.61 / (download) - annotate - [select for diffs], Sun Feb 3 17:55:55 2002 UTC (22 years, 3 months ago) by markus
Branch: MAIN
Changes since 1.60: +1 -2 lines
Diff to previous 1.60 (colored)

remove unused channel_input_channel_request

Revision 1.60 / (download) - annotate - [select for diffs], Wed Jan 16 13:17:51 2002 UTC (22 years, 4 months ago) by markus
Branch: MAIN
Changes since 1.59: +3 -5 lines
Diff to previous 1.59 (colored)

wrapper for channel_setup_fwd_listener

Revision 1.59 / (download) - annotate - [select for diffs], Mon Jan 14 13:57:03 2002 UTC (22 years, 4 months ago) by markus
Branch: MAIN
Changes since 1.58: +2 -2 lines
Diff to previous 1.58 (colored)

(c) 2002

Revision 1.58 / (download) - annotate - [select for diffs], Mon Jan 14 13:55:55 2002 UTC (22 years, 4 months ago) by markus
Branch: MAIN
Changes since 1.57: +9 -13 lines
Diff to previous 1.57 (colored)

remove function pointers for events, remove chan_init*; ok provos@

Revision 1.57 / (download) - annotate - [select for diffs], Sun Jan 13 21:31:20 2002 UTC (22 years, 4 months ago) by markus
Branch: MAIN
Changes since 1.56: +11 -11 lines
Diff to previous 1.56 (colored)

add chan_set_[io]state(), order states, state is now an u_int,
simplifies debugging messages; ok provos@

Revision 1.56 / (download) - annotate - [select for diffs], Fri Dec 28 15:06:00 2001 UTC (22 years, 4 months ago) by markus
Branch: MAIN
Changes since 1.55: +15 -15 lines
Diff to previous 1.55 (colored)

remove plen from the dispatch fn. it's no longer used.

Revision 1.55 / (download) - annotate - [select for diffs], Thu Dec 20 22:50:24 2001 UTC (22 years, 5 months ago) by djm
Branch: MAIN
Changes since 1.54: +15 -15 lines
Diff to previous 1.54 (colored)

Conformance fix: we should send failing packet sequence number when
responding with a SSH_MSG_UNIMPLEMENTED message. Spotted by
yakk@yakk.dot.net; ok markus@

Revision 1.54 / (download) - annotate - [select for diffs], Thu Dec 20 16:37:29 2001 UTC (22 years, 5 months ago) by markus
Branch: MAIN
Changes since 1.53: +3 -3 lines
Diff to previous 1.53 (colored)

setup x11 listen socket for just one connect if the client requests so.
(v2 only, but the openssh client does not support this feature).

Revision 1.53 / (download) - annotate - [select for diffs], Thu Nov 29 21:10:51 2001 UTC (22 years, 5 months ago) by stevesk
Branch: MAIN
Changes since 1.52: +2 -2 lines
Diff to previous 1.52 (colored)

sshd X11 fake server will now listen on localhost by default:
$ 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@

Revision 1.52 / (download) - annotate - [select for diffs], Thu Nov 29 19:06:39 2001 UTC (22 years, 5 months ago) by stevesk
Branch: MAIN
Changes since 1.51: +1 -2 lines
Diff to previous 1.51 (colored)

remove dead function prototype; ok markus@

Revision 1.31.2.4 / (download) - annotate - [select for diffs], Thu Nov 15 22:51:15 2001 UTC (22 years, 6 months ago) by miod
Branch: OPENBSD_2_9
Changes since 1.31.2.3: +2 -2 lines
Diff to previous 1.31.2.3 (colored) to branchpoint 1.31 (colored)

Merge OpenSSH 3.0.1.

Revision 1.22.2.8 / (download) - annotate - [select for diffs], Thu Nov 15 22:50:30 2001 UTC (22 years, 6 months ago) by miod
Branch: OPENBSD_2_8
Changes since 1.22.2.7: +2 -2 lines
Diff to previous 1.22.2.7 (colored) to branchpoint 1.22 (colored)

Merge OpenSSH 3.0.1.

This is likely to be the last commit to the 2.8-STABLE branch.

Revision 1.31.2.3 / (download) - annotate - [select for diffs], Thu Nov 15 00:15:19 2001 UTC (22 years, 6 months ago) by miod
Branch: OPENBSD_2_9
Changes since 1.31.2.2: +6 -7 lines
Diff to previous 1.31.2.2 (colored) to branchpoint 1.31 (colored)

Merge OpenSSH 3.0

Revision 1.22.2.7 / (download) - annotate - [select for diffs], Thu Nov 15 00:14:59 2001 UTC (22 years, 6 months ago) by miod
Branch: OPENBSD_2_8
Changes since 1.22.2.6: +6 -7 lines
Diff to previous 1.22.2.6 (colored) to branchpoint 1.22 (colored)

Merge OpenSSH 3.0

Revision 1.50.2.1 / (download) - annotate - [select for diffs], Wed Nov 14 03:24:38 2001 UTC (22 years, 6 months ago) by jason
Branch: OPENBSD_3_0
Changes since 1.50: +2 -2 lines
Diff to previous 1.50 (colored)

Pull in patches from current (Errata 002):
Update to OpenSSH-3.0.1 via errata patch (Instead of using release tarball)

Revision 1.51 / (download) - annotate - [select for diffs], Wed Nov 7 22:53:21 2001 UTC (22 years, 6 months ago) by markus
Branch: MAIN
Changes since 1.50: +2 -2 lines
Diff to previous 1.50 (colored)

crank c->path to 256 so they can hold a full hostname; dwd@bell-labs.com

Revision 1.50 / (download) - annotate - [select for diffs], Wed Oct 10 22:18:47 2001 UTC (22 years, 7 months ago) by markus
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE
Branch point for: OPENBSD_3_0
Changes since 1.49: +2 -2 lines
Diff to previous 1.49 (colored)

try to keep channels open until an exit-status message is sent.
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 ?

Revision 1.49 / (download) - annotate - [select for diffs], Tue Oct 9 21:59:41 2001 UTC (22 years, 7 months ago) by markus
Branch: MAIN
Changes since 1.48: +1 -3 lines
Diff to previous 1.48 (colored)

simplify session close: no more delayed session_close, no more blocking wait() calls.

Revision 1.48 / (download) - annotate - [select for diffs], Sun Oct 7 17:49:40 2001 UTC (22 years, 7 months ago) by markus
Branch: MAIN
Changes since 1.47: +3 -3 lines
Diff to previous 1.47 (colored)

avoid possible FD_ISSET overflow for channels established
during channnel_after_select() (used for dynamic channels).

Revision 1.47 / (download) - annotate - [select for diffs], Mon Oct 1 21:38:53 2001 UTC (22 years, 7 months ago) by markus
Branch: MAIN
Changes since 1.46: +3 -2 lines
Diff to previous 1.46 (colored)

remove ugliness; vp@drexel.edu via angelos

Revision 1.31.2.2 / (download) - annotate - [select for diffs], Thu Sep 27 19:03:54 2001 UTC (22 years, 7 months ago) by jason
Branch: OPENBSD_2_9
Changes since 1.31.2.1: +121 -200 lines
Diff to previous 1.31.2.1 (colored) to branchpoint 1.31 (colored)

Pull in OpenSSH-2.9.9

Revision 1.22.2.6 / (download) - annotate - [select for diffs], Thu Sep 27 00:15:41 2001 UTC (22 years, 7 months ago) by miod
Branch: OPENBSD_2_8
Changes since 1.22.2.5: +121 -200 lines
Diff to previous 1.22.2.5 (colored) to branchpoint 1.22 (colored)

Pull in OpenSSH 2.9.9 to the 2.8 branch.

Revision 1.46 / (download) - annotate - [select for diffs], Mon Sep 17 20:52:47 2001 UTC (22 years, 8 months ago) by markus
Branch: MAIN
Changes since 1.45: +2 -1 lines
Diff to previous 1.45 (colored)

try to fix agent-forwarding-backconnection-bug, as seen on HPUX, for example;
with Lutz.Jaenicke@aet.TU-Cottbus.DE,

Revision 1.45 / (download) - annotate - [select for diffs], Tue Jul 17 21:04:57 2001 UTC (22 years, 10 months ago) by markus
Branch: MAIN
Changes since 1.44: +3 -2 lines
Diff to previous 1.44 (colored)

keep track of both maxfd and the size of the malloc'ed fdsets.
update maxfd if maxfd gets closed.

Revision 1.44 / (download) - annotate - [select for diffs], Mon Jul 2 22:52:57 2001 UTC (22 years, 10 months ago) by markus
Branch: MAIN
Changes since 1.43: +6 -4 lines
Diff to previous 1.43 (colored)

improve cleanup/exit logic in ssh2:
stop listening to channels, detach channel users (e.g. sessions).
wait for children (i.e. dying sessions), send exit messages,
cleanup all channels.

Revision 1.43 / (download) - annotate - [select for diffs], Sat Jun 30 18:08:40 2001 UTC (22 years, 10 months ago) by stevesk
Branch: MAIN
Changes since 1.42: +2 -2 lines
Diff to previous 1.42 (colored)

adress -> address; ok markus@

Revision 1.42 / (download) - annotate - [select for diffs], Tue Jun 26 17:27:23 2001 UTC (22 years, 10 months ago) by markus
Branch: MAIN
Changes since 1.41: +58 -67 lines
Diff to previous 1.41 (colored)

remove comments from .h, since they are cut&paste from the .c files
and out of sync

Revision 1.41 / (download) - annotate - [select for diffs], Tue Jun 26 06:32:49 2001 UTC (22 years, 10 months ago) by itojun
Branch: MAIN
Changes since 1.40: +47 -56 lines
Diff to previous 1.40 (colored)

prototype pedant.  not very creative...
- () -> (void)
- no variable names

Revision 1.40 / (download) - annotate - [select for diffs], Mon Jun 25 08:25:36 2001 UTC (22 years, 10 months ago) by markus
Branch: MAIN
Changes since 1.39: +2 -2 lines
Diff to previous 1.39 (colored)

update copyright for 2001

Revision 1.39 / (download) - annotate - [select for diffs], Wed Jun 20 13:56:39 2001 UTC (22 years, 11 months ago) by markus
Branch: MAIN
Changes since 1.38: +3 -2 lines
Diff to previous 1.38 (colored)

move from channel_stop_listening to channel_free_all,
call channel_free_all before calling waitpid() in serverloop.
fixes the utmp handling; report from Lutz.Jaenicke@aet.TU-Cottbus.DE

Revision 1.38 / (download) - annotate - [select for diffs], Sat Jun 16 08:50:39 2001 UTC (22 years, 11 months ago) by markus
Branch: MAIN
Changes since 1.37: +1 -2 lines
Diff to previous 1.37 (colored)

bad //-style comment; thx to stevev@darkwing.uoregon.edu

Revision 1.22.2.5 / (download) - annotate - [select for diffs], Tue Jun 12 22:47:35 2001 UTC (22 years, 11 months ago) by miod
Branch: OPENBSD_2_8
Changes since 1.22.2.4: +3 -1 lines
Diff to previous 1.22.2.4 (colored) to branchpoint 1.22 (colored)

Pull in patch from current:
Errata:
sshd(8) allows users to delete arbitrary files named "cookies" if
X11 forwarding is enabled. X11 forwarding is disabled by default.
Fix (markus):
- use fatal_register_cleanup instead of atexit, sync with x11 authdir
  handling
- switch uid when cleaning up tmp files and sockets; reported by
  zen-parse@gmx.net on bugtraq

Revision 1.31.2.1 / (download) - annotate - [select for diffs], Tue Jun 12 22:31:48 2001 UTC (22 years, 11 months ago) by jason
Branch: OPENBSD_2_9
Changes since 1.31: +3 -1 lines
Diff to previous 1.31 (colored)

Pull in patch from current:
Fix (markus):
- use fatal_register_cleanup instead of atexit, sync with x11 authdir handling
- switch uid when cleaning up tmp files and sockets; reported by zen-parse@gmx.net on bugtraq

Revision 1.37 / (download) - annotate - [select for diffs], Mon Jun 4 21:59:42 2001 UTC (22 years, 11 months ago) by markus
Branch: MAIN
Changes since 1.36: +2 -2 lines
Diff to previous 1.36 (colored)

switch uid when cleaning up tmp files and sockets; reported by zen-parse@gmx.net on bugtraq

Revision 1.36 / (download) - annotate - [select for diffs], Sun Jun 3 14:55:39 2001 UTC (22 years, 11 months ago) by markus
Branch: MAIN
Changes since 1.35: +2 -1 lines
Diff to previous 1.35 (colored)

use fatal_register_cleanup instead of atexit, sync with x11 authdir handling

Revision 1.35 / (download) - annotate - [select for diffs], Thu May 31 10:30:15 2001 UTC (22 years, 11 months ago) by markus
Branch: MAIN
Changes since 1.34: +60 -125 lines
Diff to previous 1.34 (colored)

undo the .c file split, just merge the header and keep the cvs history

Revision 1.34, Wed May 30 12:55:10 2001 UTC (22 years, 11 months ago) by markus
Branch: MAIN
Changes since 1.33: +1 -1 lines
FILE REMOVED

channel layer cleanup: merge header files and split .c files

Revision 1.33 / (download) - annotate - [select for diffs], Mon May 28 23:14:49 2001 UTC (22 years, 11 months ago) by markus
Branch: MAIN
Changes since 1.32: +3 -2 lines
Diff to previous 1.32 (colored)

undo broken channel fix and try a different one. there
should be still some select errors...

Revision 1.22.2.4 / (download) - annotate - [select for diffs], Mon May 7 21:09:27 2001 UTC (23 years ago) by jason
Branch: OPENBSD_2_8
Changes since 1.22.2.3: +7 -3 lines
Diff to previous 1.22.2.3 (colored) to branchpoint 1.22 (colored)

Pull in OpenSSH-2.9 to 2.8 branch.

Revision 1.32 / (download) - annotate - [select for diffs], Fri May 4 23:47:33 2001 UTC (23 years ago) by markus
Branch: MAIN
Changes since 1.31: +11 -11 lines
Diff to previous 1.31 (colored)

move to Channel **channels (instead of Channel *channels), fixes realloc problems.
channel_new now returns a Channel *, favour Channel * over channel id.
remove old channel_allocate interface.

Revision 1.31 / (download) - annotate - [select for diffs], Fri Apr 13 22:46:53 2001 UTC (23 years, 1 month ago) by beck
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE
Branch point for: OPENBSD_2_9
Changes since 1.30: +3 -1 lines
Diff to previous 1.30 (colored)

Add options ClientAliveInterval and ClientAliveCountMax to sshd.
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@

Revision 1.30 / (download) - annotate - [select for diffs], Sat Apr 7 08:55:17 2001 UTC (23 years, 1 month ago) by markus
Branch: MAIN
Changes since 1.29: +3 -2 lines
Diff to previous 1.29 (colored)

allow the ssh client act as a SOCKS4 proxy (dynamic local portforwarding).
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.

Revision 1.29 / (download) - annotate - [select for diffs], Wed Apr 4 20:25:36 2001 UTC (23 years, 1 month ago) by markus
Branch: MAIN
Changes since 1.28: +3 -2 lines
Diff to previous 1.28 (colored)

more robust rekeying
don't send channel data after rekeying is started.

Revision 1.22.2.3 / (download) - annotate - [select for diffs], Wed Mar 21 19:46:23 2001 UTC (23 years, 2 months ago) by jason
Branch: OPENBSD_2_8
Changes since 1.22.2.2: +12 -4 lines
Diff to previous 1.22.2.2 (colored) to branchpoint 1.22 (colored)

Pull in OpenSSH-2.5.2 for 2.8 branch.

Revision 1.12.2.5 / (download) - annotate - [select for diffs], Wed Mar 21 18:52:40 2001 UTC (23 years, 2 months ago) by jason
Branch: OPENBSD_2_7
Changes since 1.12.2.4: +12 -4 lines
Diff to previous 1.12.2.4 (colored) to branchpoint 1.12 (colored) next main 1.13 (colored)

Pull in OpenSSH-2.5.2 for 2.7 branch.

Revision 1.28 / (download) - annotate - [select for diffs], Fri Mar 16 19:06:29 2001 UTC (23 years, 2 months ago) by markus
Branch: MAIN
Changes since 1.27: +12 -4 lines
Diff to previous 1.27 (colored)

implement "permitopen" key option, restricts -L style forwarding to
to specified host:port pairs. based on work by harlan@genua.de

Revision 1.12.2.4 / (download) - annotate - [select for diffs], Mon Mar 12 15:44:09 2001 UTC (23 years, 2 months ago) by jason
Branch: OPENBSD_2_7
Changes since 1.12.2.3: +20 -13 lines
Diff to previous 1.12.2.3 (colored) to branchpoint 1.12 (colored)

OpenSSH-2.5.1 for 2.7 patch branch

Revision 1.22.2.2 / (download) - annotate - [select for diffs], Mon Feb 19 17:18:46 2001 UTC (23 years, 3 months ago) by jason
Branch: OPENBSD_2_8
Changes since 1.22.2.1: +0 -0 lines
Diff to previous 1.22.2.1 (colored) to branchpoint 1.22 (colored)

Pull in OpenSSH-2.5.1

Revision 1.22.2.1 / (download) - annotate - [select for diffs], Fri Feb 16 20:12:57 2001 UTC (23 years, 3 months ago) by jason
Branch: OPENBSD_2_8
Changes since 1.22: +20 -13 lines
Diff to previous 1.22 (colored)

Pull in OpenSSH 2.5.0

Revision 1.27 / (download) - annotate - [select for diffs], Thu Feb 15 23:19:59 2001 UTC (23 years, 3 months ago) by markus
Branch: MAIN
Changes since 1.26: +2 -1 lines
Diff to previous 1.26 (colored)

genericize password padding function for SSH1 and SSH2.
add stylized echo to 2, too.

Revision 1.26 / (download) - annotate - [select for diffs], Wed Jan 31 20:37:23 2001 UTC (23 years, 3 months ago) by markus
Branch: MAIN
Changes since 1.25: +3 -3 lines
Diff to previous 1.25 (colored)

do not disconnect if local port forwarding fails, e.g. if port is already in use

Revision 1.25 / (download) - annotate - [select for diffs], Mon Jan 29 16:55:36 2001 UTC (23 years, 3 months ago) by markus
Branch: MAIN
Changes since 1.24: +7 -6 lines
Diff to previous 1.24 (colored)

fix select overflow; ok deraadt@ and stevesk@

Revision 1.24 / (download) - annotate - [select for diffs], Tue Dec 5 20:34:10 2000 UTC (23 years, 5 months ago) by markus
Branch: MAIN
Changes since 1.23: +3 -2 lines
Diff to previous 1.23 (colored)

async connects for -R/-L; ok deraadt@

Revision 1.12.2.3 / (download) - annotate - [select for diffs], Wed Nov 8 21:30:34 2000 UTC (23 years, 6 months ago) by jason
Branch: OPENBSD_2_7
Changes since 1.12.2.2: +65 -17 lines
Diff to previous 1.12.2.2 (colored) to branchpoint 1.12 (colored)

openssh-2.3.0 (again) for 2.7 branch

Revision 1.23 / (download) - annotate - [select for diffs], Mon Nov 6 23:04:56 2000 UTC (23 years, 6 months ago) by markus
Branch: MAIN
Changes since 1.22: +11 -7 lines
Diff to previous 1.22 (colored)

agent forwarding and -R for ssh2, based on work from jhuuskon@messi.uku.fi

Revision 1.22 / (download) - annotate - [select for diffs], Fri Oct 27 07:48:22 2000 UTC (23 years, 6 months ago) by markus
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE
Branch point for: OPENBSD_2_8
Changes since 1.21: +3 -1 lines
Diff to previous 1.21 (colored)

deny agent/x11 forwarding unless requested; thanks to jwl@pobox.com

Revision 1.21 / (download) - annotate - [select for diffs], Fri Oct 27 07:32:18 2000 UTC (23 years, 6 months ago) by markus
Branch: MAIN
Changes since 1.20: +6 -3 lines
Diff to previous 1.20 (colored)

enable non-blocking IO on channels, and tty's (except for the client ttys).

Revision 1.20 / (download) - annotate - [select for diffs], Thu Sep 21 11:25:33 2000 UTC (23 years, 8 months ago) by markus
Branch: MAIN
Changes since 1.19: +15 -15 lines
Diff to previous 1.19 (colored)

add context to dispatch_run

Revision 1.19 / (download) - annotate - [select for diffs], Thu Sep 7 21:13:37 2000 UTC (23 years, 8 months ago) by markus
Branch: MAIN
Changes since 1.18: +12 -1 lines
Diff to previous 1.18 (colored)

some more Copyright fixes

Revision 1.18 / (download) - annotate - [select for diffs], Thu Sep 7 20:40:29 2000 UTC (23 years, 8 months ago) by markus
Branch: MAIN
Changes since 1.17: +10 -1 lines
Diff to previous 1.17 (colored)

cleanup window and packet sizes for ssh2 flow control; ok niels

Revision 1.17 / (download) - annotate - [select for diffs], Thu Sep 7 20:27:50 2000 UTC (23 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.16: +24 -1 lines
Diff to previous 1.16 (colored)

cleanup copyright notices on all files.  I have attempted to be accurate with
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.

Revision 1.12.2.2 / (download) - annotate - [select for diffs], Fri Sep 1 18:23:18 2000 UTC (23 years, 8 months ago) by jason
Branch: OPENBSD_2_7
Changes since 1.12.2.1: +11 -3 lines
Diff to previous 1.12.2.1 (colored) to branchpoint 1.12 (colored)

Pull in the rest of openssh-2.2.0 to 2.7 branch (luvin' cvs...)

Revision 1.16 / (download) - annotate - [select for diffs], Sat Aug 19 21:55:51 2000 UTC (23 years, 9 months ago) by markus
Branch: MAIN
Changes since 1.15: +7 -4 lines
Diff to previous 1.15 (colored)

more ~ support for ssh2

Revision 1.15 / (download) - annotate - [select for diffs], Sat Aug 19 18:48:11 2000 UTC (23 years, 9 months ago) by markus
Branch: MAIN
Changes since 1.14: +6 -1 lines
Diff to previous 1.14 (colored)

support for ~. in ssh2

Revision 1.14 / (download) - annotate - [select for diffs], Tue Jun 20 01:39:40 2000 UTC (23 years, 11 months ago) by markus
Branch: MAIN
Changes since 1.13: +1 -1 lines
Diff to previous 1.13 (colored)

OpenBSD tag

Revision 1.12.2.1 / (download) - annotate - [select for diffs], Mon Jun 12 02:37:32 2000 UTC (23 years, 11 months ago) by jason
Branch: OPENBSD_2_7
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored)

lovin' CVS... update patch branch to OpenSSH-2.1.1

Revision 1.13 / (download) - annotate - [select for diffs], Tue May 30 17:23:37 2000 UTC (23 years, 11 months ago) by markus
Branch: MAIN
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored)

don't panic if mkdtemp fails for authfwd; jkb@yahoo-inc.com via kris@FreeBSD.org

Revision 1.12 / (download) - annotate - [select for diffs], Wed May 3 18:03:06 2000 UTC (24 years ago) by markus
Branch: MAIN
CVS Tags: OPENBSD_2_7_BASE
Branch point for: OPENBSD_2_7
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

GatewayPorts for sshd, ok deraadt@

Revision 1.11 / (download) - annotate - [select for diffs], Tue May 2 12:44:38 2000 UTC (24 years ago) by markus
Branch: MAIN
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

use c-style comments

Revision 1.10 / (download) - annotate - [select for diffs], Fri Apr 28 08:10:20 2000 UTC (24 years ago) by markus
Branch: MAIN
Changes since 1.9: +5 -2 lines
Diff to previous 1.9 (colored)

support for x11-fwding, client+server

Revision 1.9 / (download) - annotate - [select for diffs], Fri Apr 14 10:30:30 2000 UTC (24 years, 1 month ago) by markus
Branch: MAIN
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored)

whitespace cleanup

Revision 1.8 / (download) - annotate - [select for diffs], Mon Apr 3 07:07:15 2000 UTC (24 years, 1 month ago) by markus
Branch: MAIN
Changes since 1.7: +14 -1 lines
Diff to previous 1.7 (colored)

channel layer support for ssh2

Revision 1.7 / (download) - annotate - [select for diffs], Tue Mar 28 20:31:26 2000 UTC (24 years, 1 month ago) by markus
Branch: MAIN
Changes since 1.6: +186 -8 lines
Diff to previous 1.6 (colored)

replace big switch() with function tables (prepare for ssh2)

Revision 1.6 / (download) - annotate - [select for diffs], Wed Nov 24 19:53:45 1999 UTC (24 years, 5 months ago) by markus
Branch: MAIN
Changes since 1.5: +12 -15 lines
Diff to previous 1.5 (colored)

KNF, final part 3

Revision 1.5 / (download) - annotate - [select for diffs], Wed Nov 24 00:26:01 1999 UTC (24 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.4: +34 -28 lines
Diff to previous 1.4 (colored)

much more KNF

Revision 1.4 / (download) - annotate - [select for diffs], Thu Oct 28 21:26:09 1999 UTC (24 years, 6 months ago) by markus
Branch: MAIN
Changes since 1.3: +3 -4 lines
Diff to previous 1.3 (colored)

remove broken x11 fix and document istate/ostate

Revision 1.3 / (download) - annotate - [select for diffs], Sun Oct 17 16:56:09 1999 UTC (24 years, 7 months ago) by markus
Branch: MAIN
CVS Tags: OPENBSD_2_6_BASE, OPENBSD_2_6
Changes since 1.2: +5 -4 lines
Diff to previous 1.2 (colored)

re-implement the proto-1.5 channel close protocol, see nchan.ms.

Revision 1.2 / (download) - annotate - [select for diffs], Sat Oct 16 22:29:00 1999 UTC (24 years, 7 months ago) by markus
Branch: MAIN
Changes since 1.1: +2 -0 lines
Diff to previous 1.1 (colored)

add CVS tags, fix comments and whitespace

Revision 1.1 / (download) - annotate - [select for diffs], Sat Oct 16 20:47:13 1999 UTC (24 years, 7 months ago) by markus
Branch: MAIN

support for SSH protocol 1.5 which is poorly documented, the RFC.troff lies.
interops (x11,agent,etc) with 1.2.27 and protocol 1.3

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.