summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/sshbuf.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* support for RFC4648 base64url encoding; ok markusdjm2020-06-221-1/+3
|
* make sshbuf_dump() args constdjm2020-06-051-2/+2
|
* Fix comment typo. Patch from mforney at mforney.org.dtucker2020-04-261-2/+2
|
* spelling errors in comments; no code changedjm2020-03-131-2/+2
| | | | from https://fossies.org/linux/misc/openssh-8.2p1.tar.gz/codespell.html
* factor out reading/writing sshbufs to dedicated functions;djm2020-01-251-1/+17
| | | | feedback and ok markus@
* fixes for !WITH_OPENSSL compilation; ok dtucker@djm2019-09-061-1/+10
|
* let sshbuf_find/cmp take a void* for the search/comparisondjm2019-07-301-3/+3
| | | | argument, instead of a u_char*. Saves callers needing to cast.
* remove mostly vestigal uuencode.[ch]; moving the only uniquedjm2019-07-161-2/+3
| | | | | functionality there (wrapping of base64-encoded data) to sshbuf functions; feedback and ok markus@
* two more bounds-checking sshbuf counterparts to common stringdjm2019-07-151-1/+28
| | | | | | operations: sshbuf_cmp() (bcmp-like) and sshbuf_find() (memmem like) feedback and ok markus@
* add some functions to perform random-access read/write operationsdjm2019-07-141-2/+21
| | | | | | | inside buffers with bounds checking. Intended to replace manual pointer arithmetic wherever possible. feedback and ok markus@
* Make sshpkt_get_bignum2() allocate the bignum it is parsing ratherdjm2019-01-211-2/+2
| | | | | | than make the caller do it. Saves a lot of boilerplate code. from markus@ ok djm@
* remove obsolete (SSH v.1) sshbuf_get/put_bignum1 functionsdjm2019-01-211-3/+1
| | | | from markus@ ok djm@
* remove legacy buffer API emulation layer; ok djm@markus2018-07-091-10/+1
|
* lots of typos in comments/docs. Patch from Karsten Weiss after checkingdjm2018-04-101-2/+2
| | | | with codespell tool (https://github.com/lucasdemarchi/codespell)
* refactor channels.cdjm2017-09-121-1/+2
| | | | | | | | | | | | | | | | | | 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@
* split allocation out of sshbuf_reserve() into a separatedjm2016-11-251-1/+9
| | | | sshbuf_allocate() function; ok markus@
* fix signed/unsigned errors reported by clang-3.7; adddjm2016-05-021-1/+8
| | | | | | sshbuf_dup_string() to replace a common idiom of strdup(sshbuf_ptr()) with better safety checking; feedback and ok markus@
* Fix a couple "the the" typos. ok dtucker@mmcc2015-12-101-3/+3
|
* improve PEEK/POKE macros: better casts, don't multiply evaluatedjm2015-11-111-29/+32
| | | | arguments; ok deraadt@
* avoid BIGNUM in KRL code by using a simple bitmap;djm2015-01-141-1/+3
| | | | feedback and ok markus
* New key API: refactor key-related functions to be more library-like,djm2014-06-241-2/+5
| | | | | | | | | 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.
* Group ECC functions together to make things a little easier in -portable.dtucker2014-06-101-4/+4
| | | | "doesn't bother me" deraadt@
* New buffer API; the first installment of the conversion/replacementdjm2014-04-301-0/+325
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.