BUILD: ssl: fix build error on older compilers with openssl-3.2
authorWilly Tarreau <w@1wt.eu>
Mon, 25 Mar 2024 20:21:47 +0000 (21:21 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 25 Mar 2024 20:21:47 +0000 (21:21 +0100)
commit2431b206408167111f06e4444d6e8570525dc342
treec252a7147de1b7f2bf036e83896e3210f4e509a6
parent4bc81ec9857a3b427caba65353fd3816c1d0d651
BUILD: ssl: fix build error on older compilers with openssl-3.2

OpenSSL 3.2 triggers the code part added by commit 25da217 ("MINOR: ssl:
Update ssl_fc_curve/ssl_bc_curve to use SSL_get0_group_name") which
contains a variable declaration in the for() statement and breaks on
older compilers, as reported in GH issues #2501.

Let's just declare it normally to fix the problem. This must be
backported wherever the commit above is (at least 2.9).
src/ssl_sample.c