]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: tools: add a secure implementation of memset 20251219-memset_s flx04/20251219-memset_s
authorMaxime Henrion <mhenrion@haproxy.com>
Fri, 19 Dec 2025 15:40:38 +0000 (10:40 -0500)
committerWilliam Lallemand <wlallemand@irq6.net>
Fri, 19 Dec 2025 16:42:57 +0000 (17:42 +0100)
commitc8750e4e9da526e06beb502f0fc47d22527bce38
tree00097b48c8e59e1eb64d60c00ceaab648380cc05
parentbd92f34f0266378c89d87c23a968d593daac5449
MINOR: tools: add a secure implementation of memset

This guarantees that the compiler will not optimize away the memset()
call if it detects a dead store.

Use this to clear SSL passphrases.

No backport needed.
include/haproxy/tools.h
src/ssl_sock.c
src/tools.c