Install custom stack allocators used for ASYNC jobs on POSIX.
Declared in <openssl/async.h>
int
ASYNC_set_mem_functions(
ASYNC_stack_alloc_fn alloc_fn,
ASYNC_stack_free_fn free_fn);
Must be called before any asynchronous job allocates a stack. On unsupported platforms the call fails and the defaults remain in effect.
1 if custom allocators are supported and none have been used yet, or 0 otherwise.
| Name | Description |
|---|---|
| alloc_fn | Allocator called when OpenSSL needs a job stack, or NULL for the default. |
| free_fn | Matching free callback for stacks returned by alloc_fn, or NULL for the default. |