CRYPTO_secure_allocated

Report whether ptr was allocated from the OpenSSL secure heap.

Synopsis

Declared in <openssl/crypto.h>

int
CRYPTO_secure_allocated(void const* ptr);

Return Value

1 if ptr is a secure-heap allocation, or 0 otherwise.

Parameters

NameDescription
ptrPointer to test.