]> git.kaiwu.me - haproxy.git/commit
BUILD: ssl: avoid mixed declarations in the AWS-LC curve fetch
authorWilliam Lallemand <wlallemand@haproxy.com>
Mon, 5 Oct 2026 13:04:29 +0000 (13:04 +0000)
committerWilliam Lallemand <wlallemand@haproxy.com>
Mon, 5 Oct 2026 13:04:29 +0000 (13:04 +0000)
commite4d1b143ba49b2364172395410f8b3da17caf9ae
treeb12f558f7062eda446d9f8448ad17f9a5f46e608
parente671cb696dc569892d5ea2de38cab479d4935543
BUILD: ssl: avoid mixed declarations in the AWS-LC curve fetch

The AWS-LC API 30-34 curve fetch declares the group variable after
statements, which fails builds using -Werror=declaration-after-statement.

Move the declaration to the beginning of smp_fetch_ssl_fc_ec() and keep
the assignment in the AWS-LC branch. Mark the variable __maybe_unused
for builds using other SSL libraries.

This fix must be backported wherever commit e671cb696d ("MINOR: ssl:
support curve fetches with AWS-LC API 30") was backported.
src/ssl_sample.c