History log of /openbsd-current/usr.bin/ssh/sshbuf-getput-basic.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.13 25-May-2022 djm

revert previous; it was broken (spotted by Theo)


# 1.12 25-May-2022 djm

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


Revision tags: OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE
# 1.11 05-Jun-2020 djm

make sshbuf_putb(b, NULL) a no-op


Revision tags: OPENBSD_6_7_BASE
# 1.10 13-Dec-2019 djm

allow sshbuf_put_stringb(buf, NULL); ok markus@


Revision tags: OPENBSD_6_6_BASE
# 1.9 06-Sep-2019 djm

lots of things were relying on libcrypto headers to transitively
include various system headers (mostly stdlib.h); include them
explicitly


# 1.8 14-Jul-2019 djm

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 tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.7 01-Jun-2017 djm

fix casts re constness


Revision tags: OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.6 16-Jun-2016 dtucker

Include stdarg.h for va_copy as per man page.


Revision tags: OPENBSD_5_9_BASE
# 1.5 20-Oct-2015 mmcc

Compare pointers to NULL rather than 0.

ok djm@


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.4 14-Jan-2015 djm

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


# 1.3 12-Jan-2015 djm

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@


# 1.2 04-Dec-2014 djm

convert KRL code to new buffer API

ok markus@


Revision tags: OPENBSD_5_6_BASE
# 1.1 30-Apr-2014 djm

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.


# 1.11 05-Jun-2020 djm

make sshbuf_putb(b, NULL) a no-op


Revision tags: OPENBSD_6_7_BASE
# 1.10 13-Dec-2019 djm

allow sshbuf_put_stringb(buf, NULL); ok markus@


Revision tags: OPENBSD_6_6_BASE
# 1.9 06-Sep-2019 djm

lots of things were relying on libcrypto headers to transitively
include various system headers (mostly stdlib.h); include them
explicitly


# 1.8 14-Jul-2019 djm

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 tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.7 01-Jun-2017 djm

fix casts re constness


Revision tags: OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.6 16-Jun-2016 dtucker

Include stdarg.h for va_copy as per man page.


Revision tags: OPENBSD_5_9_BASE
# 1.5 20-Oct-2015 mmcc

Compare pointers to NULL rather than 0.

ok djm@


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.4 14-Jan-2015 djm

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


# 1.3 12-Jan-2015 djm

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@


# 1.2 04-Dec-2014 djm

convert KRL code to new buffer API

ok markus@


Revision tags: OPENBSD_5_6_BASE
# 1.1 30-Apr-2014 djm

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.


# 1.10 13-Dec-2019 djm

allow sshbuf_put_stringb(buf, NULL); ok markus@


Revision tags: OPENBSD_6_6_BASE
# 1.9 06-Sep-2019 djm

lots of things were relying on libcrypto headers to transitively
include various system headers (mostly stdlib.h); include them
explicitly


# 1.8 14-Jul-2019 djm

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 tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.7 01-Jun-2017 djm

fix casts re constness


Revision tags: OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.6 16-Jun-2016 dtucker

Include stdarg.h for va_copy as per man page.


Revision tags: OPENBSD_5_9_BASE
# 1.5 20-Oct-2015 mmcc

Compare pointers to NULL rather than 0.

ok djm@


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.4 14-Jan-2015 djm

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


# 1.3 12-Jan-2015 djm

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@


# 1.2 04-Dec-2014 djm

convert KRL code to new buffer API

ok markus@


Revision tags: OPENBSD_5_6_BASE
# 1.1 30-Apr-2014 djm

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.


# 1.9 06-Sep-2019 djm

lots of things were relying on libcrypto headers to transitively
include various system headers (mostly stdlib.h); include them
explicitly


# 1.8 14-Jul-2019 djm

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 tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.7 01-Jun-2017 djm

fix casts re constness


Revision tags: OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.6 16-Jun-2016 dtucker

Include stdarg.h for va_copy as per man page.


Revision tags: OPENBSD_5_9_BASE
# 1.5 20-Oct-2015 mmcc

Compare pointers to NULL rather than 0.

ok djm@


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.4 14-Jan-2015 djm

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


# 1.3 12-Jan-2015 djm

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@


# 1.2 04-Dec-2014 djm

convert KRL code to new buffer API

ok markus@


Revision tags: OPENBSD_5_6_BASE
# 1.1 30-Apr-2014 djm

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.


# 1.8 14-Jul-2019 djm

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 tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.7 01-Jun-2017 djm

fix casts re constness


Revision tags: OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.6 16-Jun-2016 dtucker

Include stdarg.h for va_copy as per man page.


Revision tags: OPENBSD_5_9_BASE
# 1.5 20-Oct-2015 mmcc

Compare pointers to NULL rather than 0.

ok djm@


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.4 14-Jan-2015 djm

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


# 1.3 12-Jan-2015 djm

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@


# 1.2 04-Dec-2014 djm

convert KRL code to new buffer API

ok markus@


Revision tags: OPENBSD_5_6_BASE
# 1.1 30-Apr-2014 djm

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 tags: OPENBSD_6_2_BASE
# 1.7 01-Jun-2017 djm

fix casts re constness


Revision tags: OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.6 16-Jun-2016 dtucker

Include stdarg.h for va_copy as per man page.


Revision tags: OPENBSD_5_9_BASE
# 1.5 20-Oct-2015 mmcc

Compare pointers to NULL rather than 0.

ok djm@


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.4 14-Jan-2015 djm

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


# 1.3 12-Jan-2015 djm

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@


# 1.2 04-Dec-2014 djm

convert KRL code to new buffer API

ok markus@


Revision tags: OPENBSD_5_6_BASE
# 1.1 30-Apr-2014 djm

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.