OpenBSD CVS

CVS log for src/usr.bin/ssh/Attic/buffer.h


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.27, Mon Jul 9 21:56:06 2018 UTC (5 years, 10 months ago) by markus
Branch: MAIN
CVS Tags: HEAD
Changes since 1.26: +1 -1 lines
FILE REMOVED

remove legacy buffer API emulation layer; ok djm@

Revision 1.26 / (download) - annotate - [select for diffs], Sun Apr 30 23:23:54 2017 UTC (7 years ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.25: +1 -5 lines
Diff to previous 1.25 (colored)

remove SSHv1 support from packet and buffer APIs

ok markus@

Revision 1.25 / (download) - annotate - [select for diffs], Wed Apr 30 05:29:56 2014 UTC (10 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, OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.24: +31 -37 lines
Diff to previous 1.24 (colored)

New buffer API; the first installment of the conversion/replacement
of OpenSSH's internals to make them usable as a standalone library.

This includes a set of wrappers to make it compatible with the
existing buffer API so replacement can occur incrementally.

With and ok markus@

Thanks also to Ben Hawkes, David Tomaschik, Ivan Fratric, Matthew
Dempsky and Ron Bowes for a detailed review.

Revision 1.24 / (download) - annotate - [select for diffs], Mon Apr 28 03:09:18 2014 UTC (10 years ago) by djm
Branch: MAIN
Changes since 1.23: +3 -3 lines
Diff to previous 1.23 (colored)

buffer_get_string_ptr's return should be const to remind
callers that futzing with it will futz with the actual buffer
contents

Revision 1.23 / (download) - annotate - [select for diffs], Sun Jan 12 08:13:13 2014 UTC (10 years, 4 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.22: +5 -1 lines
Diff to previous 1.22 (colored)

avoid use of OpenSSL BIGNUM type and functions for KEX with
Curve25519 by adding a buffer_put_bignum2_from_string() that stores
a string using the bignum encoding rules. Will make it easier to
build a reduced-feature OpenSSH without OpenSSL in the future;
ok markus@

Revision 1.22 / (download) - annotate - [select for diffs], Fri Jul 12 00:19:58 2013 UTC (10 years, 10 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored)

fix pointer-signedness warnings from clang/llvm-3.3; "seems nice" deraadt@

Revision 1.21 / (download) - annotate - [select for diffs], Tue Aug 31 11:54:45 2010 UTC (13 years, 8 months ago) by djm
Branch: MAIN
CVS Tags: 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
Changes since 1.20: +8 -1 lines
Diff to previous 1.20 (colored)

Implement Elliptic Curve Cryptography modes for key exchange (ECDH) and
host/user keys (ECDSA) as specified by RFC5656. ECDH and ECDSA offer
better performance than plain DH and DSA at the same equivalent symmetric
key length, as well as much shorter keys.

Only the mandatory sections of RFC5656 are implemented, specifically the
three REQUIRED curves nistp256, nistp384 and nistp521 and only ECDH and
ECDSA. Point compression (optional in RFC5656 is NOT implemented).

Certificate host and user keys using the new ECDSA key types are supported.

Note that this code has not been tested for interoperability and may be
subject to change.

feedback and ok markus@

Revision 1.20 / (download) - annotate - [select for diffs], Tue Aug 31 09:58:37 2010 UTC (13 years, 8 months ago) by djm
Branch: MAIN
Changes since 1.19: +3 -1 lines
Diff to previous 1.19 (colored)

Add buffer_get_cstring() and related functions that verify that the
string extracted from the buffer contains no embedded \0 characters*
This prevents random (possibly malicious) crap from being appended to
strings where it would not be noticed if the string is used with
a string(3) function.

Use the new API in a few sensitive places.

* actually, we allow a single one at the end of the string for now because
we don't know how many deployed implementations get this wrong, but don't
count on this to remain indefinitely.

Revision 1.19 / (download) - annotate - [select for diffs], Tue Feb 9 03:56:28 2010 UTC (14 years, 3 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.18: +4 -4 lines
Diff to previous 1.18 (colored)

constify the arguments to buffer_len, buffer_ptr and buffer_dump

Revision 1.18 / (download) - annotate - [select for diffs], Tue Jan 12 01:36:08 2010 UTC (14 years, 4 months ago) by djm
Branch: MAIN
Changes since 1.17: +2 -1 lines
Diff to previous 1.17 (colored)

add a buffer_get_string_ptr_ret() that does the same as
buffer_get_string_ptr() but does not fatal() on error; ok dtucker@

Revision 1.17 / (download) - annotate - [select for diffs], Thu May 8 06:59:01 2008 UTC (16 years ago) by markus
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.16: +2 -1 lines
Diff to previous 1.16 (colored)

avoid extra malloc/copy/free when receiving data over the net;
~10% speedup for localhost-scp; ok djm@

Revision 1.13.4.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.13: +39 -4 lines
Diff to previous 1.13 (colored) next main 1.14 (colored)

upgrade to OpenSSH 4.4

Revision 1.13.6.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.13: +39 -4 lines
Diff to previous 1.13 (colored) next main 1.14 (colored)

upgrade to OpenSSH 4.4

Revision 1.16 / (download) - annotate - [select for diffs], Thu Aug 3 03:34:41 2006 UTC (17 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: 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.15: +37 -1 lines
Diff to previous 1.15 (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.15 / (download) - annotate - [select for diffs], Sun Apr 16 00:48:52 2006 UTC (18 years, 1 month ago) by djm
Branch: MAIN
Changes since 1.14: +3 -4 lines
Diff to previous 1.14 (colored)

Fix condition where we could exit with a fatal error when an input
buffer became too large and the remote end had advertised a big window.
The problem was a mismatch in the backoff math between the channels code
and the buffer code, so make a buffer_check_alloc() function that the
channels code can use to propsectivly check whether an incremental
allocation will succeed.  bz #1131, debugged with the assistance of
cove AT wildpackets.com; ok dtucker@ deraadt@

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

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

Revision 1.11.12.2 / (download) - annotate - [select for diffs], Sun Jun 5 02:22:39 2005 UTC (18 years, 11 months ago) by brad
Branch: OPENBSD_3_6
Changes since 1.11.12.1: +4 -1 lines
Diff to previous 1.11.12.1 (colored) to branchpoint 1.11 (colored) next main 1.12 (colored)

upgrade to OpenSSH 4.1

Revision 1.13 / (download) - annotate - [select for diffs], Mon Mar 14 11:46:56 2005 UTC (19 years, 2 months ago) by markus
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_8_BASE, OPENBSD_3_7_BASE, OPENBSD_3_7
Branch point for: OPENBSD_3_9, OPENBSD_3_8
Changes since 1.12: +4 -1 lines
Diff to previous 1.12 (colored)

limit input buffer size for channels; bugzilla #896; with and ok dtucker@

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

upgrade to OpenSSH 4.0

Revision 1.11.12.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.11: +5 -1 lines
Diff to previous 1.11 (colored)

upgrade to OpenSSH 4.0

Revision 1.12 / (download) - annotate - [select for diffs], Fri Oct 29 23:56:17 2004 UTC (19 years, 6 months ago) by djm
Branch: MAIN
Changes since 1.11: +5 -1 lines
Diff to previous 1.11 (colored)

introduce a new buffer API that returns an error rather than fatal()ing when
presented with bad data; ok markus@

Revision 1.7.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.7.2.1: +7 -7 lines
Diff to previous 1.7.2.1 (colored) to branchpoint 1.7 (colored) next main 1.8 (colored)

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

Revision 1.6.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.6.2.5: +7 -7 lines
Diff to previous 1.6.2.5 (colored) to branchpoint 1.6 (colored) next main 1.7 (colored)

Merge OpenSSH 3.1.

Revision 1.9.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.9: +7 -7 lines
Diff to previous 1.9 (colored) next main 1.10 (colored)

Update to OpenSSH-3.1 on 3.0-stable branch

Revision 1.11 / (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_6_BASE, OPENBSD_3_5_BASE, OPENBSD_3_4_BASE, OPENBSD_3_4, OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2, OPENBSD_3_1_BASE, OPENBSD_3_1
Branch point for: OPENBSD_3_6, OPENBSD_3_5
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (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.10 / (download) - annotate - [select for diffs], Wed Dec 19 17:16:13 2001 UTC (22 years, 5 months ago) by stevesk
Branch: MAIN
Changes since 1.9: +6 -6 lines
Diff to previous 1.9 (colored)

change the buffer/packet interface to use void* vs. char*; ok markus@

Revision 1.7.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.7: +20 -43 lines
Diff to previous 1.7 (colored)

Pull in OpenSSH-2.9.9

Revision 1.6.2.5 / (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.6.2.4: +20 -43 lines
Diff to previous 1.6.2.4 (colored) to branchpoint 1.6 (colored)

Pull in OpenSSH 2.9.9 to the 2.8 branch.

Revision 1.9 / (download) - annotate - [select for diffs], Tue Jun 26 17:27:23 2001 UTC (22 years, 10 months ago) by markus
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE
Branch point for: OPENBSD_3_0
Changes since 1.8: +20 -43 lines
Diff to previous 1.8 (colored)

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

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

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

Revision 1.6.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.6.2.3: +0 -0 lines
Diff to previous 1.6.2.3 (colored) to branchpoint 1.6 (colored)

Pull in OpenSSH-2.9 to 2.8 branch.

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

Pull in OpenSSH-2.5.2 for 2.8 branch.

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

Pull in OpenSSH-2.5.2 for 2.7 branch.

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

OpenSSH-2.5.1 for 2.7 patch branch

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

Pull in OpenSSH-2.5.1

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

Pull in OpenSSH 2.5.0

Revision 1.7 / (download) - annotate - [select for diffs], Tue Dec 19 23:17:55 2000 UTC (23 years, 5 months ago) by markus
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE
Branch point for: OPENBSD_2_9
Changes since 1.6: +10 -10 lines
Diff to previous 1.6 (colored)

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

Revision 1.4.2.2 / (download) - annotate - [select for diffs], Wed Nov 8 21:30:31 2000 UTC (23 years, 6 months ago) by jason
Branch: OPENBSD_2_7
Changes since 1.4.2.1: +6 -8 lines
Diff to previous 1.4.2.1 (colored) to branchpoint 1.4 (colored)

openssh-2.3.0 (again) for 2.7 branch

Revision 1.6 / (download) - annotate - [select for diffs], Thu Sep 7 20:27:50 2000 UTC (23 years, 8 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE
Branch point for: OPENBSD_2_8
Changes since 1.5: +6 -8 lines
Diff to previous 1.5 (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.4.2.1 / (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.4: +1 -1 lines
Diff to previous 1.4 (colored)

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

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

OpenBSD tag

Revision 1.4 / (download) - annotate - [select for diffs], Fri Apr 14 10:30:30 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.3: +7 -7 lines
Diff to previous 1.3 (colored)

whitespace cleanup

Revision 1.3 / (download) - annotate - [select for diffs], Wed Nov 24 19:53:44 1999 UTC (24 years, 5 months ago) by markus
Branch: MAIN
Changes since 1.2: +10 -6 lines
Diff to previous 1.2 (colored)

KNF, final part 3

Revision 1.2 / (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.1: +32 -34 lines
Diff to previous 1.1 (colored)

much more KNF

Revision 1.1 / (download) - annotate - [select for diffs], Sun Sep 26 20:53:34 1999 UTC (24 years, 7 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_6_BASE, OPENBSD_2_6

i bet a lot of people didn't know what ssh 1.2.16 had a nice license.
well, except for the patent issues.  someone in sweden (forget their
name at the moment) cleaned out most of the patented code, and now
this code removes rsa code.  when this is done, it will link against
libssl, but the work isn't completely done yet.  then we need to bring
this up to modern days, featurewise.

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.