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.
This commit is contained in:
Remi Tricot-Le Breton 2023-03-02 15:49:52 +01:00 committed by William Lallemand
parent 5ab54c61b0
commit ca0c84a509

View 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;