[#CRYPTO_get_mem_functions]
= CRYPTO&lowbar;get&lowbar;mem&lowbar;functions
:mrdocs:

Retrieve the process&hyphen;wide CRYPTO memory allocator callbacks currently installed&period;

== Synopsis

Declared in `&lt;openssl&sol;crypto&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
CRYPTO&lowbar;get&lowbar;mem&lowbar;functions(
    xref:CRYPTO_malloc_fn.adoc[CRYPTO&lowbar;malloc&lowbar;fn]* malloc&lowbar;fn,
    xref:CRYPTO_realloc_fn.adoc[CRYPTO&lowbar;realloc&lowbar;fn]* realloc&lowbar;fn,
    xref:CRYPTO_free_fn.adoc[CRYPTO&lowbar;free&lowbar;fn]* free&lowbar;fn);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *malloc&lowbar;fn*
| Receives the malloc callback, or may be NULL&period;
| *realloc&lowbar;fn*
| Receives the realloc callback, or may be NULL&period;
| *free&lowbar;fn*
| Receives the free callback, or may be NULL&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
