CRYPTO_clear_free

Securely clear num bytes at ptr and free the allocation.

Synopsis

Declared in <openssl/crypto.h>

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

Parameters

NameDescription
ptrMemory 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).