]> git.kaiwu.me - haproxy.git/commitdiff
DOC: ssl: clarify the NID-based curve fetch branch
authorWilliam Lallemand <wlallemand@haproxy.com>
Mon, 5 Oct 2026 16:27:55 +0000 (16:27 +0000)
committerWilliam Lallemand <wlallemand@irq6.net>
Tue, 6 Oct 2026 13:39:56 +0000 (15:39 +0200)
Document that the SSL_get_negotiated_group() path is used for OpenSSL
before 3.2 and AWS-LC API 35 or later. This only adds a comment and
does not change the fetch behavior.

src/ssl_sample.c

index ef5e6344cae27c0822ad375b98564cc3c5020b64..67552bfe83d56b9fdac406e9d0a5ba12281b4ff9 100644 (file)
@@ -1779,6 +1779,7 @@ smp_fetch_ssl_fc_ec(const struct arg *args, struct sample *smp, const char *kw,
        if (!curve_name)
                return 0;
 # else
+       /* for OpenSSL < 3.2 and AWS-LC API >= 35 */
        nid = SSL_get_negotiated_group(ssl);
        if (!nid)
                return 0;