OpenBSD CVS

CVS log for src/usr.bin/ssh/dispatch.c


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.33 / (download) - annotate - [select for diffs], Sun Mar 5 05:34:09 2023 UTC (14 months, 1 week ago) by dtucker
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, HEAD
Changes since 1.32: +1 -2 lines
Diff to previous 1.32 (colored)

Remove unused compat.h includes.  We've previously removed a lot
of the really old compatibility code, and with it went the need to
include compat.h in most of the files that have it.

Revision 1.32 / (download) - annotate - [select for diffs], Sat Jan 19 21:33:13 2019 UTC (5 years, 3 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.31: +3 -3 lines
Diff to previous 1.31 (colored)

allow sshpkt_fatal() to take a varargs format; we'll use this to give
packet-related fatal error messages more context (esp. the remote endpoint)
ok markus@

Revision 1.31 / (download) - annotate - [select for diffs], Wed May 31 07:00:13 2017 UTC (6 years, 11 months ago) by markus
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.30: +5 -8 lines
Diff to previous 1.30 (colored)

remove now obsolete ctx from ssh_dispatch_run; ok djm@

Revision 1.30 / (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.29: +3 -4 lines
Diff to previous 1.29 (colored)

protocol handlers all get struct ssh passed; ok djm@

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

obliterate ssh1.h and some dead code that used it

ok markus@

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

remove compat20/compat13/compat15 variables

ok markus@

Revision 1.27 / (download) - annotate - [select for diffs], Fri May 1 07:10:01 2015 UTC (9 years ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.26: +3 -19 lines
Diff to previous 1.26 (colored)

refactor ssh_dispatch_run_fatal() to use sshpkt_fatal() to better
report error conditions. Teach sshpkt_fatal() about ECONNRESET.

Improves error messages on TCP connection resets. bz#2257

ok dtucker@

Revision 1.26 / (download) - annotate - [select for diffs], Thu Feb 12 20:34:19 2015 UTC (9 years, 3 months ago) by dtucker
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.25: +5 -1 lines
Diff to previous 1.25 (colored)

Prevent sshd spamming syslog with "ssh_dispatch_run_fatal: disconnected".
ok markus@

Revision 1.25 / (download) - annotate - [select for diffs], Fri Jan 30 01:13:33 2015 UTC (9 years, 3 months ago) by djm
Branch: MAIN
Changes since 1.24: +4 -4 lines
Diff to previous 1.24 (colored)

avoid more fatal/exit in the packet.c paths that ssh-keyscan
uses; feedback and "looks good" markus@

Revision 1.24 / (download) - annotate - [select for diffs], Wed Jan 28 22:05:31 2015 UTC (9 years, 3 months ago) by djm
Branch: MAIN
Changes since 1.23: +15 -3 lines
Diff to previous 1.23 (colored)

avoid fatal() calls in packet code
makes ssh-keyscan more reliable against server failures
ok dtucker@ markus@

Revision 1.23 / (download) - annotate - [select for diffs], Mon Jan 19 20:07:45 2015 UTC (9 years, 3 months ago) by markus
Branch: MAIN
Changes since 1.22: +71 -33 lines
Diff to previous 1.22 (colored)

move dispatch to struct ssh; ok djm@

Revision 1.22 / (download) - annotate - [select for diffs], Fri Oct 31 15:05:34 2008 UTC (15 years, 6 months ago) by stevesk
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.21: +1 -2 lines
Diff to previous 1.21 (colored)

remove unused #define DISPATCH_MIN; ok markus@

Revision 1.16.10.1 / (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.16: +7 -3 lines
Diff to previous 1.16 (colored) next main 1.17 (colored)

upgrade to OpenSSH 4.4

Revision 1.16.12.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.16: +7 -3 lines
Diff to previous 1.16 (colored) next main 1.17 (colored)

upgrade to OpenSSH 4.4

Revision 1.21 / (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_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.20: +4 -2 lines
Diff to previous 1.20 (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.20 / (download) - annotate - [select for diffs], Sun Jul 23 01:11:05 2006 UTC (17 years, 9 months ago) by stevesk
Branch: MAIN
Changes since 1.19: +3 -1 lines
Diff to previous 1.19 (colored)

#include <signal.h> for sig_atomic_t; need this prior to <sys/param.h>
move

Revision 1.19 / (download) - annotate - [select for diffs], Thu Apr 20 09:27:09 2006 UTC (18 years, 1 month ago) by djm
Branch: MAIN
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)

replace the last non-sig_atomic_t flag used in a signal handler with a
sig_atomic_t, unfortunately with some knock-on effects in other (non-
signal) contexts in which it is used; ok markus@

Revision 1.18 / (download) - annotate - [select for diffs], Sat Mar 25 13:17:01 2006 UTC (18 years, 1 month ago) by djm
Branch: MAIN
Changes since 1.17: +1 -0 lines
Diff to previous 1.17 (colored)

Put $OpenBSD$ tags back (as comments) to replace the RCSID()s that
Theo nuked - our scripts to sync -portable need them in the files

Revision 1.17 / (download) - annotate - [select for diffs], Sun Mar 19 18:51:18 2006 UTC (18 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.16: +0 -1 lines
Diff to previous 1.16 (colored)

RCSID() can die

Revision 1.15.6.2 / (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.15.6.1: +0 -0 lines
Diff to previous 1.15.6.1 (colored) to branchpoint 1.15 (colored) next main 1.16 (colored)

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

Revision 1.15.4.1 / (download) - annotate - [select for diffs], Tue Sep 16 21:20:25 2003 UTC (20 years, 8 months ago) by brad
Branch: OPENBSD_3_2
Changes since 1.15: +3 -3 lines
Diff to previous 1.15 (colored) next main 1.16 (colored)

upgrade to OpenSSH 3.7

Revision 1.15.6.1 / (download) - annotate - [select for diffs], Tue Sep 16 20:50:43 2003 UTC (20 years, 8 months ago) by brad
Branch: OPENBSD_3_3
Changes since 1.15: +3 -3 lines
Diff to previous 1.15 (colored)

upgrade to OpenSSH 3.7

Revision 1.16 / (download) - annotate - [select for diffs], Tue Apr 8 20:21:28 2003 UTC (21 years, 1 month ago) by itojun
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_8_BASE, OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5, OPENBSD_3_4_BASE, OPENBSD_3_4
Branch point for: OPENBSD_3_9, OPENBSD_3_8
Changes since 1.15: +3 -3 lines
Diff to previous 1.15 (colored)

rename log() into logit() to avoid name conflict.  markus ok, from netbsd

Revision 1.10.2.2 / (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.10.2.1: +30 -8 lines
Diff to previous 1.10.2.1 (colored) to branchpoint 1.10 (colored) next main 1.11 (colored)

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

Revision 1.5.2.6 / (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.5.2.5: +30 -8 lines
Diff to previous 1.5.2.5 (colored) to branchpoint 1.5 (colored) next main 1.6 (colored)

Merge OpenSSH 3.1.

Revision 1.11.2.1 / (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.11: +30 -8 lines
Diff to previous 1.11 (colored) next main 1.12 (colored)

Update to OpenSSH-3.1 on 3.0-stable branch

Revision 1.15 / (download) - annotate - [select for diffs], Fri Jan 11 13:39:36 2002 UTC (22 years, 4 months ago) by markus
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_2_BASE, OPENBSD_3_1_BASE, OPENBSD_3_1
Branch point for: OPENBSD_3_3, OPENBSD_3_2
Changes since 1.14: +25 -3 lines
Diff to previous 1.14 (colored)

a single dispatch_protocol_error() that sends a message of type 'UNIMPLEMENTED'
dispatch_range(): set handler for a ranges message types
use dispatch_protocol_ignore() for authentication requests after
	successful authentication (the drafts requirement).
serverloop/clientloop now send a 'UNIMPLEMENTED' message instead of exiting.

Revision 1.14 / (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.13: +4 -5 lines
Diff to previous 1.13 (colored)

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

Revision 1.13 / (download) - annotate - [select for diffs], Fri Dec 28 14:50:54 2001 UTC (22 years, 4 months ago) by markus
Branch: MAIN
Changes since 1.12: +4 -5 lines
Diff to previous 1.12 (colored)

packet_read* no longer return the packet length, since it's not used.

Revision 1.12 / (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.11: +8 -6 lines
Diff to previous 1.11 (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.10.2.1 / (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.10: +2 -4 lines
Diff to previous 1.10 (colored)

Pull in OpenSSH-2.9.9

Revision 1.5.2.5 / (download) - annotate - [select for diffs], Thu Sep 27 00:15:42 2001 UTC (22 years, 7 months ago) by miod
Branch: OPENBSD_2_8
Changes since 1.5.2.4: +2 -4 lines
Diff to previous 1.5.2.4 (colored) to branchpoint 1.5 (colored)

Pull in OpenSSH 2.9.9 to the 2.8 branch.

Revision 1.11 / (download) - annotate - [select for diffs], Sun Jun 10 11:29:20 2001 UTC (22 years, 11 months ago) by markus
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE
Branch point for: OPENBSD_3_0
Changes since 1.10: +2 -4 lines
Diff to previous 1.10 (colored)

we support rekeying
protocol errors are fatal.

Revision 1.5.2.4 / (download) - annotate - [select for diffs], Mon May 7 21:09:29 2001 UTC (23 years ago) by jason
Branch: OPENBSD_2_8
Changes since 1.5.2.3: +0 -0 lines
Diff to previous 1.5.2.3 (colored) to branchpoint 1.5 (colored)

Pull in OpenSSH-2.9 to 2.8 branch.

Revision 1.5.2.3 / (download) - annotate - [select for diffs], Wed Mar 21 19:46:25 2001 UTC (23 years, 2 months ago) by jason
Branch: OPENBSD_2_8
Changes since 1.5.2.2: +0 -0 lines
Diff to previous 1.5.2.2 (colored) to branchpoint 1.5 (colored)

Pull in OpenSSH-2.5.2 for 2.8 branch.

Revision 1.2.2.4 / (download) - annotate - [select for diffs], Wed Mar 21 18:52:45 2001 UTC (23 years, 2 months ago) by jason
Branch: OPENBSD_2_7
Changes since 1.2.2.3: +0 -0 lines
Diff to previous 1.2.2.3 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

Pull in OpenSSH-2.5.2 for 2.7 branch.

Revision 1.2.2.3 / (download) - annotate - [select for diffs], Mon Mar 12 15:44:10 2001 UTC (23 years, 2 months ago) by jason
Branch: OPENBSD_2_7
Changes since 1.2.2.2: +9 -3 lines
Diff to previous 1.2.2.2 (colored) to branchpoint 1.2 (colored)

OpenSSH-2.5.1 for 2.7 patch branch

Revision 1.5.2.2 / (download) - annotate - [select for diffs], Mon Feb 19 17:18:54 2001 UTC (23 years, 3 months ago) by jason
Branch: OPENBSD_2_8
Changes since 1.5.2.1: +2 -2 lines
Diff to previous 1.5.2.1 (colored) to branchpoint 1.5 (colored)

Pull in OpenSSH-2.5.1

Revision 1.10 / (download) - annotate - [select for diffs], Sun Feb 18 18:33:53 2001 UTC (23 years, 3 months ago) by markus
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE
Branch point for: OPENBSD_2_9
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

typo, SSH2_MSG_KEXINIT, from aspa@kronodoc.fi

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

Pull in OpenSSH 2.5.0

Revision 1.9 / (download) - annotate - [select for diffs], Sun Feb 4 15:32:23 2001 UTC (23 years, 3 months ago) by stevesk
Branch: MAIN
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored)

unexpand and remove end-of-line whitespace; ok markus@

Revision 1.8 / (download) - annotate - [select for diffs], Sun Jan 28 10:15:34 2001 UTC (23 years, 3 months ago) by markus
Branch: MAIN
Changes since 1.7: +5 -1 lines
Diff to previous 1.7 (colored)

re-keying is not supported; ok deraadt@

Revision 1.7 / (download) - annotate - [select for diffs], Sun Jan 21 19:05:49 2001 UTC (23 years, 3 months ago) by markus
Branch: MAIN
Changes since 1.6: +3 -2 lines
Diff to previous 1.6 (colored)

split ssh.h and try to cleanup the #include mess. remove unnecessary #includes.
rename util.[ch] -> misc.[ch]

Revision 1.6 / (download) - annotate - [select for diffs], Fri Jan 19 15:55:11 2001 UTC (23 years, 4 months ago) by markus
Branch: MAIN
Changes since 1.5: +2 -1 lines
Diff to previous 1.5 (colored)

move ssh1 definitions to ssh1.h, pathnames to pathnames.h

Revision 1.2.2.2 / (download) - annotate - [select for diffs], Wed Nov 8 21:30:45 2000 UTC (23 years, 6 months ago) by jason
Branch: OPENBSD_2_7
Changes since 1.2.2.1: +4 -9 lines
Diff to previous 1.2.2.1 (colored) to branchpoint 1.2 (colored)

openssh-2.3.0 (again) for 2.7 branch

Revision 1.5 / (download) - annotate - [select for diffs], Thu Sep 21 11:25:34 2000 UTC (23 years, 8 months ago) by markus
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE
Branch point for: OPENBSD_2_8
Changes since 1.4: +4 -4 lines
Diff to previous 1.4 (colored)

add context to dispatch_run

Revision 1.4 / (download) - annotate - [select for diffs], Thu Sep 7 20:27:51 2000 UTC (23 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.3: +1 -6 lines
Diff to previous 1.3 (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.2.2.1 / (download) - annotate - [select for diffs], Fri Sep 1 18:23:19 2000 UTC (23 years, 8 months ago) by jason
Branch: OPENBSD_2_7
Changes since 1.2: +1 -1 lines
Diff to previous 1.2 (colored)

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

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

OpenBSD tag

Revision 1.2 / (download) - annotate - [select for diffs], Fri Apr 14 10:30:31 2000 UTC (24 years, 1 month ago) by markus
Branch: MAIN
CVS Tags: OPENBSD_2_7_BASE
Branch point for: OPENBSD_2_7
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)

whitespace cleanup

Revision 1.1 / (download) - annotate - [select for diffs], Tue Mar 28 20:40:48 2000 UTC (24 years, 1 month ago) by markus
Branch: MAIN

function tables for different message types

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.