]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: quic: allow-0rtt warning must only be emitted with quic bind
authorWilliam Lallemand <wlallemand@haproxy.org>
Mon, 21 Aug 2023 11:51:56 +0000 (13:51 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Mon, 21 Aug 2023 13:33:26 +0000 (15:33 +0200)
commit8c004153e5f1802b2060629d8656b42b84c65bbd
tree68d3d4b578443b438ae3c857acf3f5cb9cd25945
parent2677dc1c32f1b337fb5b946665a1621eb27dede7
BUG/MINOR: quic: allow-0rtt warning must only be emitted with quic bind

When built with USE_QUIC_OPENSSL_COMPAT, a warning is emitted when using
allow-0rtt. However this warning is emitted for every allow-0rtt
keywords on the bind line which is confusing, it must only be done in
case the bind is a quic one. Also this does not handle the case where
the allow-0rtt keyword is in the crt-list.

This patch moves the warning to ssl_quic_initial_ctx() in order to emit
the warning in every useful cases.
src/cfgparse-ssl.c
src/quic_ssl.c