SSL_GROUP_TO_NAME(3ossl)
π SSL_GROUP_TO_NAME π
okay bestie, gather round, because this is the SSL_group_to_name page from the OpenSSL 3ossl manual and it's honestly so much simpler than it sounds π«Ά
β¨ NAME β¨
SSL_group_to_name β get the name of a group, fr fr π
πΈ SYNOPSIS πΈ
#include <openssl/ssl.h>
const char *SSL_group_to_name(SSL *ssl, int id);
π¦ DESCRIPTION π¦
so like, SSL_group_to_name() is your little lookup bestie π
you hand it a TLS group ID and it hands you back the TLS group name that goes with it.
and where do those names come from? built-in or external providers, babes β¨ that's the registration pipeline. same energy as the IDs you'd get handed back from a call to SSL_get1_groups() or SSL_get_shared_group().
so the vibe check is: ID goes in, name comes out. iconic behavior honestly π
β RETURN VALUES β
- if it's non-
NULL,SSL_group_to_name()gives you the TLS group name matching theidyou passed, as a NUL-terminated string π - if it returns
NULL, bestie, something went wrong π and possibly no correspondingtlsnamegot registered during provider initialisation. yeah. that'll do it.
π¨ IMPORTANT ONE, don't skip this: the return value is valid only during the lifetime of theSSLobjectssl. so do NOT go holding onto that pointer aftersslis gone, okay? that's giving dangling pointer energy and we do not want π
π SEE ALSO π
π COPYRIGHT π
Copyright 2021-2024 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, no cap π§ this was SSL_GROUP_TO_NAME(3ossl) from OpenSSL 3.5.9, dated 2026-09-29 β mwah, slay, go call your provider initialisation properly πβ¨
π¦ where this page comes from
- fedora 43: openssl-devel 1:3.5.9-1.fc43 Β· Apache-2.0
- fedora 43: openssl-devel 1:3.5.9-1.fc43 Β· Apache-2.0
- fedora 44: openssl-devel 1:3.5.9-1.fc44 Β· Apache-2.0
- fedora 44: openssl-devel 1:3.5.9-1.fc44 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms