]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: ssl: OCSP callback only registered for first SSL_CTX
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Fri, 21 Jul 2023 15:21:15 +0000 (17:21 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Mon, 24 Jul 2023 08:43:20 +0000 (10:43 +0200)
commitadb96fd9ff5d8e9e7c9e173857b5e221d1da0b51
tree8c722706f47c225681c3fd2889aae38365eda637
parent80cef0c02dc2e578c0956a304a75165781cdb15b
BUG/MINOR: ssl: OCSP callback only registered for first SSL_CTX

If multiple SSL_CTXs use the same certificate that has an OCSP response
file on the filesystem, only the first one will have the OCSP callback
set. This bug was introduced by "cc346678d MEDIUM: ssl: Add ocsp_certid
in ckch structure and discard ocsp buffer early" which cleared the
ocsp_response from the ckch_data after it was inserted in the tree,
which prevented subsequent contexts from having the callback registered.

This patch should be backported to 2.8.
src/ssl_sock.c