]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: ssl/threads: Make management of the TLS ticket keys files thread-safe
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 16 Feb 2018 10:23:49 +0000 (11:23 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 19 Feb 2018 13:15:38 +0000 (14:15 +0100)
commit16f45c87d5f9bf57fa4e7e71546bce352a727425
treecde3e079194089520ec2924e080a60e3924018dc
parent9ad9f3517ee9e4289a003941a49cf52bd06314e3
BUG/MINOR: ssl/threads: Make management of the TLS ticket keys files thread-safe

A TLS ticket keys file can be updated on the CLI and used in same time. So we
need to protect it to be sure all accesses are thread-safe. Because updates are
infrequent, a R/W lock has been used.

This patch must be backported in 1.8
include/common/hathreads.h
include/proto/ssl_sock.h
include/types/ssl_sock.h
src/ssl_sock.c