Install process‐wide CRYPTO memory allocator callbacks (before first allocation).
Synopsis
Declared in <openssl/crypto.h>
int
CRYPTO_set_mem_functions(
CRYPTO_malloc_fn malloc_fn,
CRYPTO_realloc_fn realloc_fn,
CRYPTO_free_fn free_fn);
Return Value
1 on success, or 0 if allocators cannot be changed (already in use).
Parameters
Name |
Description |
malloc_fn |
Replacement malloc, or NULL to leave the current malloc unchanged. |
realloc_fn |
Replacement realloc, or NULL to leave the current realloc unchanged. |
free_fn |
Replacement free, or NULL to leave the current free unchanged. |
Created with MrDocs