[OpenSIPS-Devel] [OpenSIPS/opensips] c2a655: tls_wolfssl: align wolfSSL shm allocations

Răzvan Crainea noreply at github.com
Wed Jun 3 14:49:22 UTC 2026


  Branch: refs/heads/3.6
  Home:   https://github.com/OpenSIPS/opensips
  Commit: c2a655a27b2c73cb8cfc8ec5717006bfa1412396
      https://github.com/OpenSIPS/opensips/commit/c2a655a27b2c73cb8cfc8ec5717006bfa1412396
  Author: Razvan Crainea <razvan at opensips.org>
  Date:   2026-06-03 (Wed, 03 Jun 2026)

  Changed paths:
    M modules/tls_wolfssl/wolfssl.c

  Log Message:
  -----------
  tls_wolfssl: align wolfSSL shm allocations

wolfSSL may require allocations aligned beyond the default shm allocator guarantee on builds that enable aligned cryptographic data. Keep the existing allocator path unchanged unless wolfSSL advertises such a requirement, and use an aligned shm-backed wrapper only then.

The wrapper follows the issue patch by over-allocating, storing the raw shm pointer before the aligned address, and using memmove after shm_realloc when the aligned offset changes so data is preserved before writing the back-pointer.

Reported-and-tested-by: @volga629-1

Fixed-by: @NormB

Suggested-by: @space88man

Closes #3814



To unsubscribe from these emails, change your notification settings at https://github.com/OpenSIPS/opensips/settings/notifications



More information about the Devel mailing list