summaryrefslogtreecommitdiffstats
path: root/sshbuf-getput-basic.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* upstream: revert previous; it was broken (spotted by Theo)djm@openbsd.org2022-05-251-11/+11
| | | | OpenBSD-Commit-ID: 457c79afaca2f89ec2606405c1059b98b30d8b0d
* upstream: make SSHBUF_DBG/SSHBUF_TELL (off by default and only enableddjm@openbsd.org2022-05-251-11/+11
| | | | | | via #define) dump to stderr rather than stdout OpenBSD-Commit-ID: 10298513ee32db8390aecb0397d782d68cb14318
* upstream: make sshbuf_putb(b, NULL) a no-opdjm@openbsd.org2020-06-051-1/+3
| | | | OpenBSD-Commit-ID: 976fdc99b500e347023d430df372f31c1dd128f7
* upstream: allow sshbuf_put_stringb(buf, NULL); ok markus@djm@openbsd.org2019-12-131-1/+4
| | | | OpenBSD-Commit-ID: 91482c1ada9adb283165d48dafbb88ae91c657bd
* wrap stdint.h include in HAVE_STDINT_HDamien Miller2019-10-091-1/+3
| | | | | | make the indenting a little more consistent too.. Fixes Solaris 2.6; reported by Tom G. Christensen
* upstream: lots of things were relying on libcrypto headers todjm@openbsd.org2019-09-061-1/+2
| | | | | | | transitively include various system headers (mostly stdlib.h); include them explicitly OpenBSD-Commit-ID: 5b522f4f2d844f78bf1cc4f3f4cc392e177b2080
* upstream: add some functions to perform random-access read/writedjm@openbsd.org2019-07-151-1/+162
| | | | | | | | | operations inside buffers with bounds checking. Intended to replace manual pointer arithmetic wherever possible. feedback and ok markus@ OpenBSD-Commit-ID: 91771fde7732738f1ffed078aa5d3bee6d198409
* upstream commitdjm@openbsd.org2017-06-011-2/+2
| | | | | | fix casts re constness Upstream-ID: e38f2bac162b37dbaf784d349c8327a6626fa266
* Move VA_COPY macro into compat header.Darren Tucker2016-07-151-2/+2
| | | | | | | | Some AIX compilers unconditionally undefine va_copy but don't set it back to an internal function, causing link errors. In some compat code we already use VA_COPY instead so move the two existing instances into the shared header and use for sshbuf-getput-basic.c too. Should fix building with at lease some versions of AIX's compiler. bz#2589, ok djm@
* upstream commitdtucker@openbsd.org2016-06-241-1/+3
| | | | | | Include stdarg.h for va_copy as per man page. Upstream-ID: 105d6b2f1af2fbd9d91c893c436ab121434470bd
* upstream commitmmcc@openbsd.org2015-10-251-4/+4
| | | | | | | | Compare pointers to NULL rather than 0. ok djm@ Upstream-ID: 21616cfea27eda65a06e772cc887530b9a1a27f8
* upstream commitdjm@openbsd.org2015-01-141-1/+37
| | | | | avoid BIGNUM in KRL code by using a simple bitmap; feedback and ok markus
* upstream commitdjm@openbsd.org2015-01-131-7/+12
| | | | | | apparently memcpy(x, NULL, 0) is undefined behaviour according to C99 (cf. sections 7.21.1 and 7.1.4), so check skip memcpy calls when length==0; ok markus@
* upstream commitdjm@openbsd.org2014-12-041-2/+2
| | | | | | convert KRL code to new buffer API ok markus@
* - (djm) [Makefile.in configure.ac sshbuf-getput-basic.c]Damien Miller2014-05-151-1/+1
| | | | [sshbuf-getput-crypto.c sshbuf.c] compilation and portability fixes
* - djm@cvs.openbsd.org 2014/04/30 05:29:56Damien Miller2014-05-151-0/+421
[bufaux.c bufbn.c bufec.c buffer.c buffer.h sshbuf-getput-basic.c] [sshbuf-getput-crypto.c sshbuf-misc.c sshbuf.c sshbuf.h ssherr.c] [ssherr.h] 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.