From: William Lallemand Date: Fri, 2 Oct 2026 11:15:46 +0000 (+0200) Subject: BUILD: ssl: fix build without USE_OPENSSL + clear_ocsp_clt_check_ctx X-Git-Tag: v3.5-dev9~216 X-Git-Url: https://git.kaiwu.me/?a=commitdiff_plain;h=ad6b6af8b146f52aed23128a18eb11e3baa58a3b;p=haproxy.git BUILD: ssl: fix build without USE_OPENSSL + clear_ocsp_clt_check_ctx src/stream.c: In function ‘stream_free’: src/stream.c:722:9: error: implicit declaration of function ‘clear_ocsp_clt_check_ctx’ [-Werror=implicit-function-declaration] 722 | clear_ocsp_clt_check_ctx(&s->ocsp_clt_check_ctx); | ^~~~~~~~~~~~~~~~~~~~~~~~ Add HAVE_SSL_OCSP to ensure we have the feature. --- diff --git a/src/stream.c b/src/stream.c index fba7a2591..c04571df0 100644 --- a/src/stream.c +++ b/src/stream.c @@ -719,8 +719,10 @@ void stream_free(struct stream *s) s->resolv_ctx.requester = NULL; } +#ifdef HAVE_SSL_OCSP clear_ocsp_clt_check_ctx(&s->ocsp_clt_check_ctx); ha_free(&s->ocsp_clt_check_ctx); +#endif if (fe) { if (s->req_cap) {