SSL_GET0_GROUP_NAME(3ossl)

πŸ“¦ version 3.5.0, in opensuse-leap 16.0

πŸ’… SSL_GET0_GROUP_NAME β€” like, which group did your TLS handshake actually vibe with? πŸ’–

okay so bestie, this is the 3ossl manual page for SSL_get0_group_name, and it's genuinely so cute and simple. no cap, it's a one-function wonder.


✨ NAME ✨

SSL_get0_group_name β€” get the name of the group that was used for the key agreement of the current TLS session establishment πŸŽ€

🌸 SYNOPSIS 🌸

#include <openssl/ssl.h>

const char *SSL_get0_group_name(SSL *s);

like, that's it. one include, one function, one SSL *. iconic.

πŸ¦‹ DESCRIPTION πŸ¦‹

So SSL_get0_group_name() returns the name of the group that was used for the key agreement of the current TLS session establishment. That's the whole personality. It tells you which group your key agreement picked, for the TLS session that's being established right now. ✨

πŸ’œ RETURN VALUES πŸ’œ

If it's 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. (yes, same sentence, it's that kind of function πŸ’…)

If SSL_get0_group_name() returns NULL, an error occurred β€” possibly no TLS session has been established. See also SSL_get_negotiated_group(3).

⚠️ okay this part matters, bestie: the return value is valid only during the lifetime of the SSL object ssl. Don't go stashing that pointer somewhere and acting surprised later. πŸ™ˆ

πŸ”₯ SEE ALSO πŸ”₯

πŸ‘‘ HISTORY πŸ‘‘

This function was added in OpenSSL 3.2. so if you're on something older, no group name for you, sorry babe 😭

Copyright 2023-2025 The OpenSSL Project Authors. All Rights Reserved.

Licensed under the Apache License 2.0 (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at <https://www.openssl.org/source/license.html>.


and that's the page!! 🫢 sign-off time: this was version 3.5.0, dated 2026-09-25, filed under SSL_GET0_GROUP_NAME(3ossl) β€” go get that group name, bestie, you ate πŸ’…βœ¨πŸ“

πŸ“¦ where this page comes from