SSL_GROUP_TO_NAME(3ossl)
π SSL_GROUP_TO_NAME β get name of group
okay so real talk, bestie: this is the 3ossl manual page for SSL_group_to_name, and it's honestly one of the shorter ones β a little snack, not a whole meal. but it's important so let's go π
β¨ SYNOPSIS β¨
#include <openssl/ssl.h>
const char *SSL_group_to_name(SSL *ssl, int id);
that's it. two lines. we love a low-effort icon π
πΈ DESCRIPTION πΈ
SSL_group_to_name() is the function you call when you've got a TLS group ID (just a number, kinda boring, no personality) and you want the actual TLS group name that goes with it β the cute little string version, basically.
where do these names come from? from providers, bestie π β either the built-in ones or external providers. they get registered during provider initialisation, and that's how this lookup even knows what to tell you.
and like, you probably got that id from somewhere legit, right? specifically from a call to SSL_get1_groups() or SSL_get_shared_group(). that's the vibe β those are the functions handing you the IDs in the first place. iykyk π¦
π₯ RETURN VALUES π₯
so if things went well and the return is non-NULL, you get back the TLS group name that corresponds to the given id, as a NUL-terminated string. slay. π
if SSL_group_to_name() returns NULL, that means an error happened β and honestly it might just be that no corresponding tlsname was ever registered during provider initialisation. like, nobody introduced them. awkward. π
β οΈ heads up, bestie: the return value is only valid during the lifetime of the SSL object ssl. the moment that object's gone, the string's gone too β do NOT hold onto it and act surprised later. π«Ά
π SEE ALSO π
that's the whole list. iconic minimalism. π
π 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>.
okay that's the whole page, you're officially educated π§ this was version 3.5.0, dated 2026-09-25 β go forth and get those group names, bestie, and remember: the string is borrowed, not yours π
β¨β
π¦ where this page comes from
- opensuse-leap 16.0: openssl-3-doc 3.5.0-160000.11.1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms