wolfssl-examples/staticmemory
JacobBarthelmeh 0594daf982 add debug callback function example 2024-08-06 17:02:58 -06:00
..
Makefile add debug callback function example 2024-08-06 17:02:58 -06:00
README.md add size calculation example for static memory 2024-08-06 16:36:35 -06:00
debug-callback-example.c add debug callback function example 2024-08-06 17:02:58 -06:00
size-calculation.c add size calculation example for static memory 2024-08-06 16:36:35 -06:00

README.md

Examples of using wolfSSL's simple memory allocator. Enabled with --enable-staticmemory or WOLFSSL_STATIC_MEMORY when building wolfSSL. This is not a feature to reduce memory size!! It in fact uses a little more memory overhead. The staticmemory feature is used to have a simple fixed pool of memory available instead of using a systems malloc/free calls. Helpful in cases where dynamic memory is not allowed.

wolfSSL has support for XMALLOC_USER which could be used to instead map XMALLOC and XFREE to any desired implementation of malloc/free.