BUF_MEM_new_ex

Allocate a new BUF_MEM with the given allocation flags.

Synopsis

Declared in <openssl/buffer.h>

BUF_MEM*
BUF_MEM_new_ex(unsigned long flags);

Return Value

New zero-length BUF_MEM, or NULL on allocation failure.

Parameters

NameDescription
flagsAllocation flags such as BUF_MEM_FLAG_SECURE for secure-heap data.