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

Name

Description

ptr

Memory to clear and free, or NULL.

num

Number of bytes at ptr to zero before freeing.

file

Source file name for tracking (usually FILE).

line

Source line for tracking (usually LINE).

Created with MrDocs