]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: ssl: Add ocsp-update information to "show ssl crt-list"
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Thu, 2 Mar 2023 14:49:52 +0000 (15:49 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Thu, 2 Mar 2023 14:57:55 +0000 (15:57 +0100)
The "show ssl crt-list <list>" CLI command did not manage the new
ocsp-update option yet.

src/ssl_crtlist.c

index aa7fdb2edb281071d18b910ec876477df219a61d..e5a5c24547ec23e84021b4e1f26b3ce871a1549c 100644 (file)
@@ -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;