summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/sshbuf-misc.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* support for RFC4648 base64url encoding; ok markusdjm2020-06-221-1/+44
|
* make sshbuf_dump() args constdjm2020-06-051-2/+2
|
* change explicit_bzero();free() to freezero()jsg2020-02-261-7/+4
| | | | | | | | While freezero() returns early if the pointer is NULL the tests for NULL in callers are left to avoid warnings about passing an uninitialised size argument across a function boundry. ok deraadt@ djm@
* tidy headers; some junk snuck into sshbuf-misc.c and sshbuf-io.cdjm2020-01-251-10/+5
| | | | doesn't need SSHBUF_INTERNAL set
* factor out reading/writing sshbufs to dedicated functions;djm2020-01-251-5/+10
| | | | feedback and ok markus@
* let sshbuf_find/cmp take a void* for the search/comparisondjm2019-07-301-4/+3
| | | | argument, instead of a u_char*. Saves callers needing to cast.
* fix off-by-one in sshbuf_dtob64() base64 wrapping that could causedjm2019-07-181-2/+2
| | | | | extra newlines to be appended at the end of the base64 text (ugly, but harmless). Found and fixed by Sebastian Kinne
* remove mostly vestigal uuencode.[ch]; moving the only uniquedjm2019-07-161-11/+46
| | | | | 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/+38
| | | | | | operations: sshbuf_cmp() (bcmp-like) and sshbuf_find() (memmem like) feedback and ok markus@
* Remove some set but never used variables. ok daraadt@dtucker2019-07-071-3/+2
|
* fix signed/unsigned errors reported by clang-3.7; adddjm2016-05-021-1/+24
| | | | | | sshbuf_dup_string() to replace a common idiom of strdup(sshbuf_ptr()) with better safety checking; feedback and ok markus@
* some more bzero->explicit_bzero, from Michael McConvilledjm2015-10-051-5/+5
|
* correct fmt-string for size_t as noted by Nicholas Lemonias; ok djm@markus2015-03-241-2/+2
|
* Include stdint.h, not limits.h to get SIZE_MAX. OK guenther@millert2015-02-051-1/+2
|
* New key API: refactor key-related functions to be more library-like,djm2014-06-241-5/+11
| | | | | | | | | 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.
* New buffer API; the first installment of the conversion/replacementdjm2014-04-301-0/+127
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.