SSL_GET0_GROUP_NAME(3ossl)

πŸ“¦
version 15.1 Β· 2 versions
, in freebsd 15.1

πŸ’… SSL_GET0_GROUP_NAME πŸ’…

okay so bestie, welcome to the ssl.h chapter of the OpenSSL manual β€” this one's page SSL_GET0_GROUP_NAME(3ossl), straight out of the OpenSSL 3ossl section, and it's literally so cute and tiny. let's get into it πŸŽ€


✨ NAME ✨

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

(like, the actual crypto group your handshake used. main character information, tbh.)


🌸 SYNOPSIS 🌸

#include <openssl/ssl.h>

const char *SSL_get0_group_name(SSL *s);

one function, one SSL *s, one const char * back. no cap, that's the whole vibe check 🫢


πŸ’– 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 it. that's the function. it tells you which group did the key agreement for the session that's being established right now. iconic behavior honestly πŸ‘‘


⭐ 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 πŸ’«
  • if SSL_get0_group_name() returns NULL, an error occurred β€” possibly no TLS session has been established 😭 (yeah. that happens. it's giving "not me forgetting to finish the handshake")

also pls go look at SSL_get_negotiated_group(3) if you want the sibling function β€” they're besties fr fr 🫢

⚠️ okay this part MATTERS: the return value is valid only during the lifetime of the SSL object s. so like, don't go storing that pointer and using it after your SSL is gone, bestie. that's how you get undefined behavior and tears πŸ’€

πŸ”₯ SEE ALSO πŸ”₯


πŸ¦‹ HISTORY πŸ¦‹

this function was added in OpenSSL 3.2 β€” so if you're on something older, she's simply not there yet πŸ™ˆ


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 whole page, bestie!! mwah πŸ’‹ β€” this was page SSL_GET0_GROUP_NAME(3ossl), version 3.5.6, dated 2026-04-07, and yes she ate and left no crumbs πŸ“βœ¨πŸ’…

πŸ“¦ where this page comes from