From e60c7d6e59157ecbe080782d86bfd432bbe5e16b Mon Sep 17 00:00:00 2001 From: William Lallemand Date: Wed, 30 Mar 2022 11:26:15 +0200 Subject: [PATCH] MINOR: ssl: export ckch_inst_rebuild() ckch_inst_rebuild() will be needed to regenerate the ckch instances from the lua code, we need to export it. --- include/haproxy/ssl_ckch.h | 2 ++ src/ssl_ckch.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/include/haproxy/ssl_ckch.h b/include/haproxy/ssl_ckch.h index 3f2dc795b5..3d14dce291 100644 --- a/include/haproxy/ssl_ckch.h +++ b/include/haproxy/ssl_ckch.h @@ -51,6 +51,8 @@ int ckch_inst_new_load_store(const char *path, struct ckch_store *ckchs, struct struct ssl_bind_conf *ssl_conf, char **sni_filter, int fcount, struct ckch_inst **ckchi, char **err); int ckch_inst_new_load_srv_store(const char *path, struct ckch_store *ckchs, struct ckch_inst **ckchi, char **err); +int ckch_inst_rebuild(struct ckch_store *ckch_store, struct ckch_inst *ckchi, + struct ckch_inst **new_inst, char **err); void ckch_deinit(); void ckch_inst_add_cafile_link(struct ckch_inst *ckch_inst, struct bind_conf *bind_conf, diff --git a/src/ssl_ckch.c b/src/ssl_ckch.c index 66604c5078..597f3f2d74 100644 --- a/src/ssl_ckch.c +++ b/src/ssl_ckch.c @@ -1713,8 +1713,8 @@ static void cli_release_commit_cert(struct appctx *appctx) * specific ckch_store. * Returns 0 in case of success, 1 otherwise. */ -static int ckch_inst_rebuild(struct ckch_store *ckch_store, struct ckch_inst *ckchi, - struct ckch_inst **new_inst, char **err) +int ckch_inst_rebuild(struct ckch_store *ckch_store, struct ckch_inst *ckchi, + struct ckch_inst **new_inst, char **err) { int retval = 0; int errcode = 0; -- 2.47.3