From acf1331ed826e1c2adbcd42a2eef82bd64bcadb0 Mon Sep 17 00:00:00 2001 From: Remi Tricot-Le Breton Date: Wed, 6 May 2026 14:16:38 +0200 Subject: [PATCH] MINOR: ssl: Export 'current_crtstore_name' Make the 'current_crtstore_name' global variable visible during parsing. --- include/haproxy/ssl_ckch.h | 1 + src/ssl_ckch.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/haproxy/ssl_ckch.h b/include/haproxy/ssl_ckch.h index 1faa6c14c..72fc80587 100644 --- a/include/haproxy/ssl_ckch.h +++ b/include/haproxy/ssl_ckch.h @@ -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 diff --git a/src/ssl_ckch.c b/src/ssl_ckch.c index b6f1a7c80..28f0642a2 100644 --- a/src/ssl_ckch.c +++ b/src/ssl_ckch.c @@ -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)