From: Matt Caswell Date: Mon, 31 Mar 2025 14:51:14 +0000 (+0100) Subject: Link SSL_get_negotiated_group() and SSL_get0_group_name() in the docs X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9eb21877f5704595a89cd550b1a639df86229b09;p=thirdparty%2Fopenssl.git Link SSL_get_negotiated_group() and SSL_get0_group_name() in the docs If you are intereseted in one you might be interested in the other. Fixes #27137 Reviewed-by: Tom Cosgrove Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/27210) --- diff --git a/doc/man3/SSL_CTX_set1_curves.pod b/doc/man3/SSL_CTX_set1_curves.pod index ee591537251..017eefd3176 100755 --- a/doc/man3/SSL_CTX_set1_curves.pod +++ b/doc/man3/SSL_CTX_set1_curves.pod @@ -210,7 +210,9 @@ TLS versions, when a session has been resumed, it always reflects the group used for key exchange during the initial handshake (otherwise it is from the current, non-resumption, connection). This can be called by either client or server. If the NID for the shared group is unknown then the value is set to the -bitwise OR of TLSEXT_nid_unknown (0x1000000) and the id of the group. +bitwise OR of TLSEXT_nid_unknown (0x1000000) and the id of the group. See also +L which returns the name of the negotiated group +directly and is generally preferred over SSL_get_negotiated_group(). SSL_CTX_get0_implemented_groups() populates a stack with the names of TLS groups that are compatible with the TLS version of the B argument. @@ -314,7 +316,8 @@ prefers "B", the server will trigger an HRR for "B". =head1 SEE ALSO L, -L +L, +L =head1 HISTORY diff --git a/doc/man3/SSL_get0_group_name.pod b/doc/man3/SSL_get0_group_name.pod index 9f43a7f2503..13d26f414f7 100644 --- a/doc/man3/SSL_get0_group_name.pod +++ b/doc/man3/SSL_get0_group_name.pod @@ -21,14 +21,15 @@ the key agreement of the current TLS session establishment. If non-NULL, SSL_get0_group_name() returns the name of the group that was used for the key agreement of the current TLS session establishment. If SSL_get0_group_name() returns NULL, an error occurred; possibly no TLS session -has been established. +has been established. See also L. Note that the return value is valid only during the lifetime of the SSL object I. =head1 SEE ALSO -L +L, +L =head1 HISTORY