]> git.kaiwu.me - haproxy.git/commit
MINOR: ssl/ocsp: Remove the useless res_payload callback of the http-client
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 16 Sep 2026 07:26:45 +0000 (09:26 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 18 Sep 2026 14:50:30 +0000 (16:50 +0200)
commitefa9284bfb750be394937bd15cd9de564e97e31c
tree80b3b652dcdc0bda3d38673968e2a950038463b6
parentcf862475cda075df14d1853b405fb30eb5e1f5b9
MINOR: ssl/ocsp: Remove the useless res_payload callback of the http-client

The OCSP update task does not process the response payload on the fly. The
whole payload is accumulated in the http-client response buffer and only
retrieved when the response is fully received, on the res_end callback. So
there is no reason to define a res_payload callback. It was only used to set
the HC_OCSP_RES_BODY flag, to know if a payload was received or not. Testing
the content of the response buffer is enough to do so.

The res_payload callback and the HC_OCSP_RES_BODY flag are thus removed.
This way, the OCSP update task now works the same way than the ACME one.
src/ssl_ocsp.c