wolfssl-examples/staticmemory/memory-bucket-optimizer/examples
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
..
Makefile Update TLS example to better handle missing static memory support 2025-03-04 01:07:30 +00:00
README.md Update TLS example to better handle missing static memory support 2025-03-04 01:07:30 +00:00
example_application Add memory bucket optimizer tool 2025-03-04 01:04:54 +00:00
example_application.c Add memory bucket optimizer tool 2025-03-04 01:04:54 +00:00
tls_example.c Update TLS example to better handle missing static memory support 2025-03-04 01:07:30 +00:00

README.md

Memory Bucket Optimizer Examples

This directory contains examples demonstrating how to use optimized memory bucket configurations with wolfSSL's static memory feature.

Examples

  1. example_application.c: Basic example showing how to use static memory with optimized bucket configurations
  2. tls_example.c: Example demonstrating optimized bucket configurations for TLS 1.2 and TLS 1.3

Building

make

Running

  1. Basic Example:

    ./example_application
    
  2. TLS Example:

    ./tls_example
    

Requirements

  • wolfSSL built with --enable-staticmemory
  • GNU Make
  • GCC

Notes

  • The examples demonstrate different bucket configurations optimized for specific use cases
  • Memory usage statistics are provided to show the effectiveness of the optimizations
  • Both examples handle the case where static memory is not enabled in wolfSSL