]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Link SSL_get_negotiated_group() and SSL_get0_group_name() in the docs
authorMatt Caswell <matt@openssl.org>
Mon, 31 Mar 2025 14:51:14 +0000 (15:51 +0100)
committerTomas Mraz <tomas@openssl.org>
Wed, 2 Apr 2025 06:47:23 +0000 (08:47 +0200)
If you are intereseted in one you might be interested in the other.

Fixes #27137

Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/27210)

doc/man3/SSL_CTX_set1_curves.pod
doc/man3/SSL_get0_group_name.pod

index ee5915372519b234fb787fd0e7170e805d0242e6..017eefd3176a9f0ff8b104fd7ba3453d986f40bf 100755 (executable)
@@ -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<SSL_get0_group_name(3)> 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<ctx> argument.
@@ -314,7 +316,8 @@ prefers "B", the server will trigger an HRR for "B".
 =head1 SEE ALSO
 
 L<ssl(7)>,
-L<SSL_CTX_add_extra_chain_cert(3)>
+L<SSL_CTX_add_extra_chain_cert(3)>,
+L<SSL_get0_group_name(3)>
 
 =head1 HISTORY
 
index 9f43a7f2503dd3bb6b93c07669059acc2f6701ca..13d26f414f7697f1946b1216ba258c478191d0da 100644 (file)
@@ -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<SSL_get_negotiated_group(3)>.
 
 Note that the return value is valid only during the lifetime of the
 SSL object I<ssl>.
 
 =head1 SEE ALSO
 
-L<ssl(7)>
+L<ssl(7)>,
+L<SSL_get_negotiated_group(3)>
 
 =head1 HISTORY