]> git.kaiwu.me - haproxy.git/commit
MINOR: ssl: Factorize ckch instance rebuild process
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Wed, 6 May 2026 12:16:40 +0000 (14:16 +0200)
committerWilliam Lallemand <wlallemand@irq6.net>
Wed, 6 May 2026 19:37:18 +0000 (21:37 +0200)
commit53ecb81781780121cf1285beb2378e7fc56bf6df
tree0f8adb2b9833a5cedbda43db3fe360a600b5a556
parentefe6c974888b90446e154abd8088f91edc994ad6
MINOR: ssl: Factorize ckch instance rebuild process

The ckch instances for a given ckch_store have to be rebuilt when a
certificate is updated during runtime (via cli or lua). The code was
duplicated in lua so factorizing the actual loop avoids future errors
if the code changes. The new 'ckch_store_rebuild_instances' will have a
dedicated 0 return code if it needs to be called again (because of the
yielding logic since ckch instance rebuild might take some time).
include/haproxy/ssl_ckch.h
src/hlua.c
src/ssl_ckch.c