OpenBSD CVS

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


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.28 / (download) - annotate - [select for diffs], Fri Dec 2 04:40:27 2022 UTC (17 months, 2 weeks ago) by djm
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.27: +2 -24 lines
Diff to previous 1.27 (colored)

make struct sshbuf private and remove an unused field; ok dtucker

Revision 1.27 / (download) - annotate - [select for diffs], Wed May 25 06:03:44 2022 UTC (23 months, 3 weeks ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2
Changes since 1.26: +7 -8 lines
Diff to previous 1.26 (colored)

revert previous; it was broken (spotted by Theo)

Revision 1.26 / (download) - annotate - [select for diffs], Wed May 25 00:31:13 2022 UTC (23 months, 3 weeks ago) by djm
Branch: MAIN
Changes since 1.25: +9 -8 lines
Diff to previous 1.25 (colored)

make SSHBUF_DBG/SSHBUF_TELL (off by default and only enabled via
#define) dump to stderr rather than stdout

Revision 1.25 / (download) - annotate - [select for diffs], Sat Jan 22 00:43:43 2022 UTC (2 years, 3 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_7_1_BASE, OPENBSD_7_1
Changes since 1.24: +5 -1 lines
Diff to previous 1.24 (colored)

Add a sshbuf_read() that attempts to read(2) directly in to a
sshbuf; ok markus@

Revision 1.24 / (download) - annotate - [select for diffs], Sat Jan 1 05:55:06 2022 UTC (2 years, 4 months ago) by jsg
Branch: MAIN
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored)

spelling

Revision 1.23 / (download) - annotate - [select for diffs], Mon Jun 22 05:54:10 2020 UTC (3 years, 10 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8
Changes since 1.22: +3 -1 lines
Diff to previous 1.22 (colored)

support for RFC4648 base64url encoding; ok markus

Revision 1.22 / (download) - annotate - [select for diffs], Fri Jun 5 03:24:36 2020 UTC (3 years, 11 months ago) by djm
Branch: MAIN
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored)

make sshbuf_dump() args const

Revision 1.21 / (download) - annotate - [select for diffs], Sun Apr 26 09:38:14 2020 UTC (4 years ago) by dtucker
Branch: MAIN
CVS Tags: OPENBSD_6_7_BASE, OPENBSD_6_7
Changes since 1.20: +2 -2 lines
Diff to previous 1.20 (colored)

Fix comment typo.  Patch from mforney at mforney.org.

Revision 1.20 / (download) - annotate - [select for diffs], Fri Mar 13 03:17:07 2020 UTC (4 years, 2 months ago) by djm
Branch: MAIN
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored)

spelling errors in comments; no code change
from https://fossies.org/linux/misc/openssh-8.2p1.tar.gz/codespell.html

Revision 1.19 / (download) - annotate - [select for diffs], Sat Jan 25 23:02:14 2020 UTC (4 years, 3 months ago) by djm
Branch: MAIN
Changes since 1.18: +17 -1 lines
Diff to previous 1.18 (colored)

factor out reading/writing sshbufs to dedicated functions;
feedback and ok markus@

Revision 1.18 / (download) - annotate - [select for diffs], Fri Sep 6 05:23:55 2019 UTC (4 years, 8 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.17: +10 -1 lines
Diff to previous 1.17 (colored)

fixes for !WITH_OPENSSL compilation; ok dtucker@

Revision 1.17 / (download) - annotate - [select for diffs], Tue Jul 30 05:04:49 2019 UTC (4 years, 9 months ago) by djm
Branch: MAIN
Changes since 1.16: +3 -3 lines
Diff to previous 1.16 (colored)

let sshbuf_find/cmp take a void* for the search/comparison
argument, instead of a u_char*. Saves callers needing to cast.

Revision 1.16 / (download) - annotate - [select for diffs], Tue Jul 16 13:18:39 2019 UTC (4 years, 10 months ago) by djm
Branch: MAIN
Changes since 1.15: +3 -2 lines
Diff to previous 1.15 (colored)

remove mostly vestigal uuencode.[ch]; moving the only unique
functionality there (wrapping of base64-encoded data) to sshbuf
functions; feedback and ok markus@

Revision 1.15 / (download) - annotate - [select for diffs], Mon Jul 15 13:11:38 2019 UTC (4 years, 10 months ago) by djm
Branch: MAIN
Changes since 1.14: +28 -1 lines
Diff to previous 1.14 (colored)

two more bounds-checking sshbuf counterparts to common string
operations: sshbuf_cmp() (bcmp-like) and sshbuf_find() (memmem like)

feedback and ok markus@

Revision 1.14 / (download) - annotate - [select for diffs], Sun Jul 14 23:32:27 2019 UTC (4 years, 10 months ago) by djm
Branch: MAIN
Changes since 1.13: +21 -2 lines
Diff to previous 1.13 (colored)

add some functions to perform random-access read/write operations
inside buffers with bounds checking. Intended to replace manual
pointer arithmetic wherever possible.

feedback and ok markus@

Revision 1.13 / (download) - annotate - [select for diffs], Mon Jan 21 09:54:11 2019 UTC (5 years, 3 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored)

Make sshpkt_get_bignum2() allocate the bignum it is parsing rather
than make the caller do it. Saves a lot of boilerplate code.

from markus@ ok djm@

Revision 1.12 / (download) - annotate - [select for diffs], Mon Jan 21 09:52:25 2019 UTC (5 years, 3 months ago) by djm
Branch: MAIN
Changes since 1.11: +1 -3 lines
Diff to previous 1.11 (colored)

remove obsolete (SSH v.1) sshbuf_get/put_bignum1 functions

from markus@ ok djm@

Revision 1.11 / (download) - annotate - [select for diffs], Mon Jul 9 21:56:06 2018 UTC (5 years, 10 months ago) by markus
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.10: +1 -10 lines
Diff to previous 1.10 (colored)

remove legacy buffer API emulation layer; ok djm@

Revision 1.10 / (download) - annotate - [select for diffs], Tue Apr 10 00:10:49 2018 UTC (6 years, 1 month ago) by djm
Branch: MAIN
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

lots of typos in comments/docs. Patch from Karsten Weiss after checking
with codespell tool (https://github.com/lucasdemarchi/codespell)

Revision 1.9 / (download) - annotate - [select for diffs], Tue Sep 12 06:32:07 2017 UTC (6 years, 8 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.8: +2 -1 lines
Diff to previous 1.8 (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.8 / (download) - annotate - [select for diffs], Fri Nov 25 23:22:04 2016 UTC (7 years, 5 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.7: +9 -1 lines
Diff to previous 1.7 (colored)

split allocation out of sshbuf_reserve() into a separate
sshbuf_allocate() function; ok markus@

Revision 1.7 / (download) - annotate - [select for diffs], Mon May 2 08:49:03 2016 UTC (8 years ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.6: +8 -1 lines
Diff to previous 1.6 (colored)

fix signed/unsigned errors reported by clang-3.7; add
sshbuf_dup_string() to replace a common idiom of
strdup(sshbuf_ptr()) with better safety checking;
feedback and ok markus@

Revision 1.6 / (download) - annotate - [select for diffs], Thu Dec 10 07:01:35 2015 UTC (8 years, 5 months ago) by mmcc
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.5: +3 -3 lines
Diff to previous 1.5 (colored)

Fix a couple "the the" typos. ok dtucker@

Revision 1.5 / (download) - annotate - [select for diffs], Wed Nov 11 04:56:39 2015 UTC (8 years, 6 months ago) by djm
Branch: MAIN
Changes since 1.4: +32 -29 lines
Diff to previous 1.4 (colored)

improve PEEK/POKE macros: better casts, don't multiply evaluate
arguments; ok deraadt@

Revision 1.4 / (download) - annotate - [select for diffs], Wed Jan 14 15:02:39 2015 UTC (9 years, 4 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.3: +3 -1 lines
Diff to previous 1.3 (colored)

avoid BIGNUM in KRL code by using a simple bitmap;
feedback and ok markus

Revision 1.3 / (download) - annotate - [select for diffs], Tue Jun 24 01:13:21 2014 UTC (9 years, 10 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.2: +5 -2 lines
Diff to previous 1.2 (colored)

New key API: refactor key-related functions to be more library-like,
existing API is offered as a set of wrappers.

with and ok markus@

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

Revision 1.2 / (download) - annotate - [select for diffs], Tue Jun 10 21:46:11 2014 UTC (9 years, 11 months ago) by dtucker
Branch: MAIN
Changes since 1.1: +4 -4 lines
Diff to previous 1.1 (colored)

Group ECC functions together to make things a little easier in -portable.
"doesn't bother me" deraadt@

Revision 1.1 / (download) - annotate - [select for diffs], Wed Apr 30 05:29:56 2014 UTC (10 years ago) by djm
Branch: MAIN

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.

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.