OpenBSD CVS

CVS log for src/usr.bin/ssh/Attic/deattack.c


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.34, Mon May 1 09:27:45 2017 UTC (7 years ago) by djm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.33: +0 -0 lines
FILE REMOVED

don't know why cvs didn't exterminate these the first time around,
I use rm -f and everuthing...

pointed out by sobrado@

Revision 1.33 / (download) - annotate - [select for diffs], Sun Apr 30 23:26:16 2017 UTC (7 years ago) by djm
Branch: MAIN
Changes since 1.32: +0 -163 lines
Diff to previous 1.32 (colored)

remove the (in)famous SSHv1 CRC compensation attack detector.

Despite your cameo in The Matrix movies, you will not be missed.

ok markus

Revision 1.32 / (download) - annotate - [select for diffs], Tue Jan 20 23:14:00 2015 UTC (9 years, 3 months ago) by deraadt
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, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.31: +1 -2 lines
Diff to previous 1.31 (colored)

Reduce use of <sys/param.h> and transition to <limits.h> throughout.
ok djm markus

Revision 1.31 / (download) - annotate - [select for diffs], Mon Jan 19 19:52:16 2015 UTC (9 years, 3 months ago) by markus
Branch: MAIN
Changes since 1.30: +44 -38 lines
Diff to previous 1.30 (colored)

update packet.c & isolate, introduce struct ssh
a) switch packet.c to buffer api and isolate per-connection info into struct ssh
b) (de)serialization of the state is moved from monitor to packet.c
c) the old packet.c API is implemented in opacket.[ch]
d) compress.c/h is removed and integrated into packet.c
with and ok djm@

Revision 1.19.8.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.19: +39 -37 lines
Diff to previous 1.19 (colored) next main 1.20 (colored)

upgrade to OpenSSH 4.4

Revision 1.20.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.20: +39 -36 lines
Diff to previous 1.20 (colored) next main 1.21 (colored)

upgrade to OpenSSH 4.4

Revision 1.30 / (download) - annotate - [select for diffs], Sat Sep 16 19:53:37 2006 UTC (17 years, 8 months ago) by djm
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, 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.29: +23 -3 lines
Diff to previous 1.29 (colored)

limit maximum work performed by the CRC compensation attack detector,
problem reported by Tavis Ormandy, Google Security Team;
ok markus@ deraadt@

Revision 1.29 / (download) - annotate - [select for diffs], Thu Aug 3 03:34:42 2006 UTC (17 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.28: +5 -3 lines
Diff to previous 1.28 (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.28 / (download) - annotate - [select for diffs], Sat Jul 22 20:48:23 2006 UTC (17 years, 9 months ago) by stevesk
Branch: MAIN
Changes since 1.27: +3 -1 lines
Diff to previous 1.27 (colored)

move #include <string.h> out of includes.h

Revision 1.27 / (download) - annotate - [select for diffs], Thu Mar 30 09:58:15 2006 UTC (18 years, 1 month ago) by djm
Branch: MAIN
Changes since 1.26: +3 -3 lines
Diff to previous 1.26 (colored)

replace {GET,PUT}_XXBIT macros with functionally similar functions,
silencing a heap of lint warnings. also allows them to use
__bounded__ checking which can't be applied to macros; requested
by and feedback from deraadt@

Revision 1.26 / (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.25: +1 -0 lines
Diff to previous 1.25 (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.25 / (download) - annotate - [select for diffs], Sat Mar 25 01:13:23 2006 UTC (18 years, 1 month ago) by djm
Branch: MAIN
Changes since 1.24: +1 -1 lines
Diff to previous 1.24 (colored)

change OpenSSH's xrealloc() function from being xrealloc(p, new_size) to
xrealloc(p, new_nmemb, new_itemsize).

realloc is particularly prone to integer overflows because it is almost
always allocating "n * size" bytes, so this is a far safer API;
ok deraadt@

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

introduce xcalloc() and xasprintf() failure-checked allocations functions
and use them throughout openssh

xcalloc is particularly important because malloc(nmemb * size) is a
dangerous idiom (subject to integer overflow) and it is time for it to
die

feedback and ok deraadt@

Revision 1.23 / (download) - annotate - [select for diffs], Wed Mar 22 21:27:15 2006 UTC (18 years, 1 month ago) by djm
Branch: MAIN
Changes since 1.22: +5 -26 lines
Diff to previous 1.22 (colored)

remove IV support from the CRC attack detector, OpenSSH has never used
it - it only applied to IDEA-CFB, which we don't support.
prompted by NetBSD Coverity report via elad AT netbsd.org;
feedback markus@ "nuke it" deraadt@

Revision 1.22 / (download) - annotate - [select for diffs], Mon Mar 20 18:41:54 2006 UTC (18 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.21: +1 -1 lines
Diff to previous 1.21 (colored)

spacing

Revision 1.21 / (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.20: +0 -1 lines
Diff to previous 1.20 (colored)

RCSID() can die

Revision 1.20 / (download) - annotate - [select for diffs], Tue Feb 7 03:59:20 2006 UTC (18 years, 3 months ago) by stevesk
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE
Branch point for: OPENBSD_3_9
Changes since 1.19: +1 -2 lines
Diff to previous 1.19 (colored)

duplicate #include

Revision 1.18.6.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.18: +3 -3 lines
Diff to previous 1.18 (colored) next main 1.19 (colored)

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

Revision 1.18.8.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.18: +3 -3 lines
Diff to previous 1.18 (colored) next main 1.19 (colored)

upgrade to OpenSSH 3.8

Revision 1.19 / (download) - annotate - [select for diffs], Thu Sep 18 08:49:45 2003 UTC (20 years, 8 months ago) by markus
Branch: MAIN
CVS Tags: 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
Branch point for: OPENBSD_3_8
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored)

more buffer allocation fixes; from Solar Designer; CAN-2003-0682; ok millert@

Revision 1.13.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.13.2.1: +7 -6 lines
Diff to previous 1.13.2.1 (colored) to branchpoint 1.13 (colored) next main 1.14 (colored)

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

Revision 1.10.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.10.2.5: +7 -6 lines
Diff to previous 1.10.2.5 (colored) to branchpoint 1.10 (colored) next main 1.11 (colored)

Merge OpenSSH 3.1.

Revision 1.14.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.14: +7 -6 lines
Diff to previous 1.14 (colored) next main 1.15 (colored)

Update to OpenSSH-3.1 on 3.0-stable branch

Revision 1.18 / (download) - annotate - [select for diffs], Mon Mar 4 17:27:39 2002 UTC (22 years, 2 months ago) by stevesk
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_3_BASE, OPENBSD_3_2_BASE, OPENBSD_3_2, OPENBSD_3_1_BASE, OPENBSD_3_1
Branch point for: OPENBSD_3_4, OPENBSD_3_3
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (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.17 / (download) - annotate - [select for diffs], Wed Dec 19 07:18:56 2001 UTC (22 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.16: +3 -3 lines
Diff to previous 1.16 (colored)

basic KNF done while i was looking for something else

Revision 1.16 / (download) - annotate - [select for diffs], Wed Dec 5 03:56:39 2001 UTC (22 years, 5 months ago) by itojun
Branch: MAIN
Changes since 1.15: +2 -1 lines
Diff to previous 1.15 (colored)

make it compile with more strict prototype checking

Revision 1.15 / (download) - annotate - [select for diffs], Mon Nov 19 19:02:16 2001 UTC (22 years, 6 months ago) by mpech
Branch: MAIN
Changes since 1.14: +3 -3 lines
Diff to previous 1.14 (colored)

kill more registers

millert@ ok

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

Pull in OpenSSH-2.9.9

Revision 1.10.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.10.2.4: +3 -4 lines
Diff to previous 1.10.2.4 (colored) to branchpoint 1.10 (colored)

Pull in OpenSSH 2.9.9 to the 2.8 branch.

Revision 1.14 / (download) - annotate - [select for diffs], Sat Jun 23 15:12:18 2001 UTC (22 years, 10 months ago) by itojun
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE
Branch point for: OPENBSD_3_0
Changes since 1.13: +3 -4 lines
Diff to previous 1.13 (colored)

more strict prototypes.  raise warning level in Makefile.inc.  markus ok'ed
TODO; cleanup headers

Revision 1.10.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.10.2.3: +0 -0 lines
Diff to previous 1.10.2.3 (colored) to branchpoint 1.10 (colored)

Pull in OpenSSH-2.9 to 2.8 branch.

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

Pull in OpenSSH-2.5.2 for 2.8 branch.

Revision 1.6.2.4 / (download) - annotate - [select for diffs], Wed Mar 21 18:52:44 2001 UTC (23 years, 2 months ago) by jason
Branch: OPENBSD_2_7
Changes since 1.6.2.3: +2 -2 lines
Diff to previous 1.6.2.3 (colored) to branchpoint 1.6 (colored) next main 1.7 (colored)

Pull in OpenSSH-2.5.2 for 2.7 branch.

Revision 1.6.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.6.2.2: +9 -9 lines
Diff to previous 1.6.2.2 (colored) to branchpoint 1.6 (colored)

OpenSSH-2.5.1 for 2.7 patch branch

Revision 1.13 / (download) - annotate - [select for diffs], Thu Mar 1 02:45:10 2001 UTC (23 years, 2 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE
Branch point for: OPENBSD_2_9
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored)

KNF

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

Pull in OpenSSH-2.5.1

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

Pull in OpenSSH 2.5.0

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

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

Revision 1.11 / (download) - annotate - [select for diffs], Tue Dec 19 23:17:56 2000 UTC (23 years, 5 months ago) by markus
Branch: MAIN
Changes since 1.10: +8 -8 lines
Diff to previous 1.10 (colored)

replace 'unsigned bla' with 'u_bla' everywhere. also, replace 'char unsigned'
with u_char.

Revision 1.6.2.2 / (download) - annotate - [select for diffs], Wed Nov 8 21:30:43 2000 UTC (23 years, 6 months ago) by jason
Branch: OPENBSD_2_7
Changes since 1.6.2.1: +3 -2 lines
Diff to previous 1.6.2.1 (colored) to branchpoint 1.6 (colored)

openssh-2.3.0 (again) for 2.7 branch

Revision 1.10 / (download) - annotate - [select for diffs], Tue Oct 31 13:18:53 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.9: +2 -2 lines
Diff to previous 1.9 (colored)

so that large packets do not wrap "n"; from netbsd

Revision 1.9 / (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.8: +2 -1 lines
Diff to previous 1.8 (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.6.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.6: +2 -2 lines
Diff to previous 1.6 (colored)

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

Revision 1.8 / (download) - annotate - [select for diffs], Sat Aug 19 02:17:12 2000 UTC (23 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)

rename crc32() to ssh_crc32() to avoid zlib name clash.  do not move to
libz crc32 function yet, because it has ugly "long"'s in it; oneill@cs.sfu.ca

Revision 1.7 / (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.6: +1 -1 lines
Diff to previous 1.6 (colored)

OpenBSD tag

Revision 1.6 / (download) - annotate - [select for diffs], Wed Nov 24 00:26:01 1999 UTC (24 years, 5 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_7_BASE
Branch point for: OPENBSD_2_7
Changes since 1.5: +3 -2 lines
Diff to previous 1.5 (colored)

much more KNF

Revision 1.5 / (download) - annotate - [select for diffs], Tue Nov 23 22:25:53 1999 UTC (24 years, 5 months ago) by markus
Branch: MAIN
Changes since 1.4: +104 -131 lines
Diff to previous 1.4 (colored)

KNF part 1

Revision 1.4 / (download) - annotate - [select for diffs], Tue Nov 2 19:42:35 1999 UTC (24 years, 6 months ago) by markus
Branch: MAIN
Changes since 1.3: +5 -4 lines
Diff to previous 1.3 (colored)

replace assert() with error, fatal or packet_disconnect

Revision 1.3 / (download) - annotate - [select for diffs], Tue Oct 5 22:18:52 1999 UTC (24 years, 7 months ago) by markus
Branch: MAIN
CVS Tags: OPENBSD_2_6_BASE, OPENBSD_2_6
Changes since 1.2: +2 -1 lines
Diff to previous 1.2 (colored)

move auth-sockets to private dir
delete minfd residua

Revision 1.2 / (download) - annotate - [select for diffs], Tue Oct 5 02:35:57 1999 UTC (24 years, 7 months ago) by dugsong
Branch: MAIN
Changes since 1.1: +17 -4 lines
Diff to previous 1.1 (colored)

include licensing info

Revision 1.1 / (download) - annotate - [select for diffs], Tue Oct 5 01:23:54 1999 UTC (24 years, 7 months ago) by dugsong
Branch: MAIN

crc32 compensation attack fix from CORE-SDI. "it's not crypto..." -- deraadt@

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.