Re: iked: replace ibuf string API with stdio open_memstream()

2023-06-10 Thread Theo Buehler
On Sat, Jun 10, 2023 at 11:21:20AM +0200, Claudio Jeker wrote: > On Sat, Jun 10, 2023 at 10:15:53AM +0200, Theo Buehler wrote: > > On Sat, Jun 10, 2023 at 09:00:54AM +0200, Claudio Jeker wrote: > > > Instead of building an API for ibufs to handle dynamic strings use > > > open_memstream(3) which do

Re: iked: replace ibuf string API with stdio open_memstream()

2023-06-10 Thread Claudio Jeker
On Sat, Jun 10, 2023 at 10:15:53AM +0200, Theo Buehler wrote: > On Sat, Jun 10, 2023 at 09:00:54AM +0200, Claudio Jeker wrote: > > Instead of building an API for ibufs to handle dynamic strings use > > open_memstream(3) which does the same via stdio. > > > > Now open_memstream() requires a bit mor

Re: iked: replace ibuf string API with stdio open_memstream()

2023-06-10 Thread Theo Buehler
On Sat, Jun 10, 2023 at 09:00:54AM +0200, Claudio Jeker wrote: > Instead of building an API for ibufs to handle dynamic strings use > open_memstream(3) which does the same via stdio. > > Now open_memstream() requires a bit more plumbing (one needs to close the > FILE stream and free the buffer) bu