Provide a struct bio_mem for memory BIO specific data.
authorjsing <jsing@openbsd.org>
Sat, 19 Feb 2022 08:11:16 +0000 (08:11 +0000)
committerjsing <jsing@openbsd.org>
Sat, 19 Feb 2022 08:11:16 +0000 (08:11 +0000)
commitc2d9aa031d5e839e0069ec5f0bcd798d6495d6a4
tree718af8ac36e7ac272c8acfb96d9eae7336362fae
parent32367434ef46fea5a3354ec341f9bedbb6b48e67
Provide a struct bio_mem for memory BIO specific data.

In order to fix and improve the memory BIO, we need to be able to track
more than just a single BUF_MEM *. Provide a struct bio_mem (which
currently only contains a BUF_MEM *) and rework the internals to use this
struct.

ok inoguchi@ tb@
lib/libcrypto/bio/bss_mem.c