]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: ssl/ocsp: Add extra details in error logs when possible
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Fri, 13 Dec 2024 15:08:56 +0000 (16:08 +0100)
committerWilliam Lallemand <wlallemand@haproxy.com>
Wed, 18 Dec 2024 09:41:16 +0000 (10:41 +0100)
commit93f2c7342370c15ec1d82ad60f01add8491abcb8
tree288752410f5691c82ee7eabc5fca2c2da4266d8e
parent4abedc3fb0f01a06427e1f78e38f0ef6adc5f0b2
MINOR: ssl/ocsp: Add extra details in error logs when possible

When the ocsp response auto update process fails during insertion or
while validating the received ocsp response, we call
ssl_sock_update_ocsp_response or ssl_ocsp_check_response respectively
and both these functions take an 'err' parameter in which detailed error
messages can be written. Until now, those error messages were discarded
and the only information given to the user was a generic error
(ERR_CHECK or ERR_INSERT) which does not help much.
We now keep a pointer to the last error message in the certificate_ocsp
structure and dump its content in the update logs as well as in the
"show ssl ocsp-updates" cli command.

This issue was raised in GitHub #2817.
doc/configuration.txt
include/haproxy/ssl_ocsp-t.h
src/ssl_ocsp.c