summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>2023-03-02 15:49:52 +0100
committerWilliam Lallemand <wlallemand@haproxy.org>2023-03-02 15:57:55 +0100
commitca0c84a50906105cfff23dcdd2e33a9a669c4e24 (patch)
treef23b3c0d4943fd613075267b3d9efe1577dd1143
parent5ab54c61b0c222b1903c1ccf9e2a6af293cdc5d8 (diff)
downloadhaproxy-ca0c84a50906105cfff23dcdd2e33a9a669c4e24.tar.gz
MINOR: ssl: Add ocsp-update information to "show ssl crt-list"
The "show ssl crt-list <list>" CLI command did not manage the new ocsp-update option yet.
-rw-r--r--src/ssl_crtlist.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ssl_crtlist.c b/src/ssl_crtlist.c
index aa7fdb2ed..e5a5c2454 100644
--- a/src/ssl_crtlist.c
+++ b/src/ssl_crtlist.c
@@ -909,6 +909,13 @@ static void dump_crtlist_sslconf(struct buffer *buf, const struct ssl_bind_conf
space++;
}
+ if (conf->ocsp_update != SSL_SOCK_OCSP_UPDATE_DFLT) {
+ if (space) chunk_appendf(buf, " ");
+ chunk_appendf(buf, "ocsp-update %s",
+ conf->ocsp_update == SSL_SOCK_OCSP_UPDATE_OFF ? "off" : "on");
+ space++;
+ }
+
chunk_appendf(buf, "]");
return;