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-Tag: openssl-3.4.2~115 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93d4f6133f8fa8ffae5cc886b9c0d0ee378c23c6;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) (cherry picked from commit 9eb21877f5704595a89cd550b1a639df86229b09) --- diff --git a/doc/man3/SSL_CTX_set1_curves.pod b/doc/man3/SSL_CTX_set1_curves.pod index 1ebabfb4815..44b1f207588 100644 --- a/doc/man3/SSL_CTX_set1_curves.pod +++ b/doc/man3/SSL_CTX_set1_curves.pod @@ -121,7 +121,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(). All these functions are implemented as macros. @@ -159,7 +161,8 @@ key exchange, or NID_undef if there was no negotiated group. =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