]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: ssl: export ckch_inst_rebuild()
authorWilliam Lallemand <wlallemand@haproxy.org>
Wed, 30 Mar 2022 09:26:15 +0000 (11:26 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Wed, 30 Mar 2022 10:18:16 +0000 (12:18 +0200)
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
src/ssl_ckch.c

index 3f2dc795b5437c0a51e9f942effcc3616df12b12..3d14dce291d04c59d69c7286f8733e9b5a75c4db 100644 (file)
@@ -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,
index 66604c5078ca983a745611ffd997e0055948b024..597f3f2d7484d680e0d4c7a148bc6b217e3963dd 100644 (file)
@@ -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;