]> git.kaiwu.me - haproxy.git/commitdiff
MINOR: ssl: Export 'current_crtstore_name'
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Wed, 6 May 2026 12:16:38 +0000 (14:16 +0200)
committerWilliam Lallemand <wlallemand@irq6.net>
Wed, 6 May 2026 19:37:18 +0000 (21:37 +0200)
Make the 'current_crtstore_name' global variable visible during parsing.

include/haproxy/ssl_ckch.h
src/ssl_ckch.c

index 1faa6c14c0f0112fd3154634408cb1de557f214a..72fc805870fc3860b34b2a46a9391c652e24cba8 100644 (file)
@@ -84,6 +84,7 @@ const char *ha_default_cert_dir();
 
 extern struct cert_exts cert_exts[];
 extern int (*ssl_commit_crlfile_cb)(const char *path, X509_STORE *ctx, char **err);
+extern char current_crtstore_name[];
 
 /*
  * ckch_conf keywords loading
index b6f1a7c8030ebb1455dbfdc3802cbc4169ab2ea6..28f0642a2a7760cf7c24d84856bda6aeee133405 100644 (file)
@@ -5307,7 +5307,7 @@ void ckch_conf_clean(struct ckch_conf *conf)
 
 }
 
-static char current_crtstore_name[PATH_MAX] = {};
+char current_crtstore_name[PATH_MAX] = {};
 
 static int crtstore_parse_load(char **args, int section_type, struct proxy *curpx, const struct proxy *defpx,
                         const char *file, int linenum, char **err)