[#CRYPTO_set_mem_functions] = CRYPTO_set_mem_functions :mrdocs: Install process‐wide CRYPTO memory allocator callbacks (before first allocation). == Synopsis Declared in `<openssl/crypto.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int CRYPTO_set_mem_functions( xref:CRYPTO_malloc_fn.adoc[CRYPTO_malloc_fn] malloc_fn, xref:CRYPTO_realloc_fn.adoc[CRYPTO_realloc_fn] realloc_fn, xref:CRYPTO_free_fn.adoc[CRYPTO_free_fn] free_fn); ---- == Return Value 1 on success, or 0 if allocators cannot be changed (already in use). == Parameters [cols="1,4"] |=== | 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. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#