SSL_GET0_GROUP_NAME(3ossl)
π 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()returnsNULL, 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 theSSLobjects. so like, don't go storing that pointer and using it after yourSSLis 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 π
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
- freebsd 15.1: base 15.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms