From: Willy Tarreau Date: Wed, 19 Apr 2023 07:07:47 +0000 (+0200) Subject: MINOR: ssl_crtlist: dump "no-alpn" on "show crtlist" when "no-alpn" was set X-Git-Tag: v2.8-dev8~93 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=de85de69ec573d0756720b6314693f7f65cc4a27;p=thirdparty%2Fhaproxy.git MINOR: ssl_crtlist: dump "no-alpn" on "show crtlist" when "no-alpn" was set Instead of dumping "alpn " better show "no-alpn" as configured. --- diff --git a/src/ssl_crtlist.c b/src/ssl_crtlist.c index 5296118066..741e6aed6e 100644 --- a/src/ssl_crtlist.c +++ b/src/ssl_crtlist.c @@ -827,7 +827,10 @@ static void dump_crtlist_sslconf(struct buffer *buf, const struct ssl_bind_conf int comma = 0; if (space) chunk_appendf(buf, " "); - chunk_appendf(buf, "alpn "); + if (len) + chunk_appendf(buf, "alpn "); + else + chunk_appendf(buf, "no-alpn"); while (len) { unsigned short size;