wolfssl-examples/staticmemory
Devin AI c7a8831708 Update TLS example to better handle missing static memory support
The TLS example now:
1. Shows example bucket configurations even when static memory is disabled
2. Better handles missing static memory functions
3. Improves error messages and instructions

Co-Authored-By: jacob@wolfssl.com <jacob@wolfssl.com>
2025-03-04 01:07:30 +00:00
..
memory-bucket-optimizer Update TLS example to better handle missing static memory support 2025-03-04 01:07:30 +00: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.