buf_mem_st

Growable memory buffer used by BIO memory BIOs and similar helpers.

Synopsis

Declared in <openssl/buffer.h>

struct buf_mem_st;

Data Members

NameDescription
data Dynamically allocated buffer holding length bytes of content (capacity max).
flags Allocation flags such as BUF_MEM_FLAG_SECURE for secure-heap storage.
length Current number of valid content bytes stored in data.
max Allocated capacity of data in bytes.