Allocate num bytes from the secure heap and zero them.

Synopsis

Declared in <openssl/crypto.h>

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

Return Value

Pointer to zeroed secure memory, or NULL on failure.

Parameters

Name

Description

num

Number of bytes to allocate.

file

Source file name for allocation tracking (usually OPENSSL_FILE).

line

Source line for allocation tracking (usually OPENSSL_LINE).

Created with MrDocs