CRYPTO_malloc

Allocate num bytes using the installed CRYPTO malloc callback.

Synopsis

Declared in <openssl/crypto.h>

void*
CRYPTO_malloc(
    size_t num,
    char const* file,
    int line);

Return Value

Newly allocated memory, or NULL on failure.

Parameters

NameDescription
numNumber of bytes to allocate.
fileSource file for tracking (usually OPENSSL_FILE).
lineSource line for tracking (usually OPENSSL_LINE).