#
c45f3621 |
| 12-Dec-2023 |
claudio <claudio@openbsd.org> |
ibuf_getdata() abuses the rpos from the ibuf. This is no longer allowed and breaks because ibuf_seek() now uses rpos itself. Now this is just ibuf_get_ibuf() with an extra allocation done. OK tobhe@
ibuf_getdata() abuses the rpos from the ibuf. This is no longer allowed and breaks because ibuf_seek() now uses rpos itself. Now this is just ibuf_get_ibuf() with an extra allocation done. OK tobhe@ tb@
show more ...
|
#
f6f27851 |
| 18-Jul-2023 |
claudio <claudio@openbsd.org> |
Kill ibuf_cat() since there is now ibuf_add_buf() in the official API. OK tb@ tobhe@
|
#
bd027751 |
| 16-Jul-2023 |
claudio <claudio@openbsd.org> |
Merge ibuf_get() with ibuf_getdata() and rename it to ibuf_getdata(). Also replace a ibuf_reserve() call with ibuf_add_zero() and remove a buf->buf == NULL check in ibuf_length() since it is not nece
Merge ibuf_get() with ibuf_getdata() and rename it to ibuf_getdata(). Also replace a ibuf_reserve() call with ibuf_add_zero() and remove a buf->buf == NULL check in ibuf_length() since it is not necessary. OK tobhe@ tb@
show more ...
|
#
19778535 |
| 19-Jun-2023 |
claudio <claudio@openbsd.org> |
Improve the ibuf API by adding these functions: Functions extending ibuf_add to work with more specific data types ibuf_add_buf, ibuf_add_zero, ibuf_add_n8, ibuf_add_n16, ibuf_add_n32, ibuf_add_n
Improve the ibuf API by adding these functions: Functions extending ibuf_add to work with more specific data types ibuf_add_buf, ibuf_add_zero, ibuf_add_n8, ibuf_add_n16, ibuf_add_n32, ibuf_add_n64 Functions replacing ibuf_seek where data at a specific offset is modified ibuf_set, ibuf_set_n8, ibuf_set_n16, ibuf_set_n32, ibuf_set_n64 Functions to check, get and set the filedescriptor stored on the ibuf ibuf_fd_avail, ibuf_fd_get, ibuf_fd_set and ibuf_data() to access the data buffer, to be used together with ibuf_size()
On top of this add an optimized imsg_compose_ibuf() where an ibuf is wrapped into an imsg in an efficent way.
Finally remove msgbuf_drain since it is not used by anything outside of the ibuf code. Because of this removal bump the major of libutil.
Remove ibuf_data() in iked since the same function is now provided by libutil. OK tb@
show more ...
|
#
c308a74e |
| 12-Jun-2023 |
claudio <claudio@openbsd.org> |
Use stdio open_memstream(3) to build up log strings instead of trying to abuse ibufs for that. Using stdio for this has the benefit of using any stdio function to build up strings including fprintf()
Use stdio open_memstream(3) to build up log strings instead of trying to abuse ibufs for that. Using stdio for this has the benefit of using any stdio function to build up strings including fprintf(). With and OK tb@
show more ...
|
#
37e80bc6 |
| 30-May-2023 |
claudio <claudio@openbsd.org> |
Replace the one use of ibuf_prepend() using a similar ibuf_new() + ibuf_cat() method but instead of overwriting ibuf internals replace the buf a level up. Users of ikev2_msg_send() are not allowed to
Replace the one use of ibuf_prepend() using a similar ibuf_new() + ibuf_cat() method but instead of overwriting ibuf internals replace the buf a level up. Users of ikev2_msg_send() are not allowed to hold and reuse a pointer to msg_data (which is another footgun to disarm at some point). OK tb@
show more ...
|
#
56c4e216 |
| 23-May-2023 |
claudio <claudio@openbsd.org> |
Replace ibuf_advance() with ibuf_reserve(). OK tobhe@ tb@ kn@
|
#
be2b38f5 |
| 23-May-2023 |
claudio <claudio@openbsd.org> |
Replace ibuf_release() with ibuf_free() since the former just calls the latter OK kn@ tb@
|
#
022b5824 |
| 23-May-2023 |
claudio <claudio@openbsd.org> |
There is no need to ibuf_zero() or memset() any buffers. More cleanup will follow. OK tobhe@
|
#
2aed9515 |
| 17-May-2021 |
tobhe <tobhe@openbsd.org> |
Avoid calling ibuf_add() with NULL and zero length.
ok patrick@
|
#
230de460 |
| 30-Nov-2019 |
tobhe <tobhe@openbsd.org> |
Log loaded SPIs and flows.
ok patrick@
|
#
a3777487 |
| 20-Jan-2017 |
mikeb <mikeb@openbsd.org> |
Constify the data argument for ibuf_new
From and OK markus@, OK reyk
|
#
d09d3a7d |
| 21-Aug-2015 |
reyk <reyk@openbsd.org> |
Switch iked to C99-style fixed-width integer types.
OK mikeb@
|
#
f9ea9dbc |
| 06-May-2014 |
reyk <reyk@openbsd.org> |
Explicitly zero out the ibufs before releasing the memory to make sure that included crypto parameters are cleaned.
ok mikeb@ markus@
|
#
1cbd5ef1 |
| 24-Oct-2013 |
deraadt <deraadt@openbsd.org> |
no need for netinet/ip_var.h (and friends)
|
#
82bad92d |
| 21-Mar-2013 |
deraadt <deraadt@openbsd.org> |
remove excessive includes
|
#
fcebd35d |
| 08-Jan-2013 |
reyk <reyk@openbsd.org> |
Remove private CVS tag from an obsolete repository and bump copyright to 2013 while I'm here... this is my way of saying "happy new year!".
|
#
3fbc3006 |
| 18-Sep-2012 |
reyk <reyk@openbsd.org> |
update email addresses to match reality. sure jsg@ mikeb@
|
#
fc7fd3e3 |
| 09-May-2011 |
reyk <reyk@openbsd.org> |
rename functions in proc.c to proc_* and move some code from imsg_util.c to proc.c. this is the first sync to what i did for relayd but does not include the multi-instance handling - so no functiona
rename functions in proc.c to proc_* and move some code from imsg_util.c to proc.c. this is the first sync to what i did for relayd but does not include the multi-instance handling - so no functional change.
show more ...
|
#
701048fb |
| 05-May-2011 |
reyk <reyk@openbsd.org> |
Move the proc.c-specific runtime state out of struct iked into a sub-struct. This removes iked-specific stuff from proc.c.
|
#
f2f2a684 |
| 05-May-2011 |
reyk <reyk@openbsd.org> |
rename iked_proc* to privsep_proc*. no functional change.
|
#
0e397e29 |
| 22-Dec-2010 |
reyk <reyk@openbsd.org> |
split util.c into two files: imsg_util.c for ibuf/imsg stuff and util for everything else. we might need to include util.c in ikectl later.
sure mikeb@
|