]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: ssl: Enable error fetches in case of handshake error
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Thu, 29 Jul 2021 07:45:50 +0000 (09:45 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Thu, 29 Jul 2021 13:40:45 +0000 (15:40 +0200)
commit89b65cfd52a0e78255a149d8a6ee5d12936a32c7
treebe9199bc9a94b27056cf123307fabaedf18e7c81
parent3d2093af9bec2b73ed285b967f434f6bc3b7af9b
MINOR: ssl: Enable error fetches in case of handshake error

The ssl_c_err, ssl_c_ca_err and ssl_c_ca_err_depth sample fetches values
were not recoverable when the connection failed because of the test
"conn->flags & CO_FL_WAIT_XPRT" (which required the connection to be
established). They could then not be used in a log-format since whenever
they would have sent a non-null value, the value fetching was disabled.
This patch ensures that all these values can be fetched in case of
connection failure.
src/ssl_sample.c