projects
/
haproxy-3.0.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a2a0955
)
MINOR: ssl_crtlist: dump "no-alpn" on "show crtlist" when "no-alpn" was set
author
Willy Tarreau
<w@1wt.eu>
Wed, 19 Apr 2023 07:07:47 +0000
(09:07 +0200)
committer
Willy Tarreau
<w@1wt.eu>
Wed, 19 Apr 2023 07:12:43 +0000
(09:12 +0200)
Instead of dumping "alpn " better show "no-alpn" as configured.
src/ssl_crtlist.c
patch
|
blob
|
history
diff --git
a/src/ssl_crtlist.c
b/src/ssl_crtlist.c
index
5296118
..
741e6ae
100644
(file)
--- 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;