CRYPTO_secure_clear_free

Clear num bytes at ptr then free a secure-heap allocation.

Synopsis

Declared in <openssl/crypto.h>

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

Parameters

NameDescription
ptrSecure allocation to clear and free, or NULL.
numNumber of bytes at ptr to zero before freeing.
fileSource file name for tracking (usually FILE).
lineSource line for tracking (usually LINE).