CRYPTO_malloc_fn

Allocator callback type used by CRYPTO_set_mem_functions().

Synopsis

Declared in <openssl/crypto.h>

typedef void*(* CRYPTO_malloc_fn)(size_t, char const*, int);

Return Value

Newly allocated memory, or NULL on failure.

Parameters

NameDescription
numNumber of bytes to allocate.
fileSource file recorded with the allocation.
lineSource line recorded with the allocation.