From: William Lallemand Date: Wed, 30 Mar 2022 09:26:15 +0000 (+0200) Subject: MINOR: ssl: export ckch_inst_rebuild() X-Git-Tag: v2.6-dev5~95 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e60c7d6e59157ecbe080782d86bfd432bbe5e16b;p=thirdparty%2Fhaproxy.git 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. --- 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;