SSL_GROUP_TO_NAME(3ossl)
π SSL_GROUP_TO_NAME(3ossl) π
okay so this is the manpage for SSL_group_to_name, bestie β it lives in section 3 of the OpenSSL docs. tiny page, huge "wait what's my group called again" energy. let's get into it π«Ά
β¨ NAME β¨
SSL_group_to_name β get the name of a group. that's it. that's the whole vibe check. πΈ
β¨ SYNOPSIS β¨
#include <openssl/ssl.h>
const char *SSL_group_to_name(SSL *ssl, int id);
like yeah, you include the header, you call the function, you get a const char * back. iconic signature, no notes. π
β¨ DESCRIPTION β¨
so SSL_group_to_name() is the glow-up you call when you want the TLS group name that goes with a given TLS group ID. it's giving "i have the id but i need the name for the group chat" π
and where do these registered groups even come from?? literally either built-in providers or external providers β they're registered there. and the id you're passing in is the same kind of thing you'd get back from a call to SSL_get1_groups() or SSL_get_shared_group(). so if you got your id from one of those, you're in the right place. pop off. β¨
β¨ RETURN VALUES β¨
if it comes back non-NULL, SSL_group_to_name() hands you the TLS group name for that id, as a NUL-terminated string. clean, readable, slay. π
if it returns NULL?? that means an error happened β and possibly the reason is that no corresponding tlsname got registered during provider initialisation. so like... the group exists but it forgot its name tag at orientation π
β οΈ okay important one, bestie: the return value is only valid during the lifetime of theSSLobjectssl. so do not go stashing that pointer somewhere and using it after theSSLobject is gone. it is NOT yours to keep, it is a borrow. no cap. π
β¨ SEE ALSO β¨
ssl(7)β go read it, iykyk π
β¨ 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>. π₯
k that's the whole page, mwah π β this one's from OpenSSL 3.5.6, dated 2026-04-07, and yes the manual name is SSL_GROUP_TO_NAME(3ossl) in case you need to cite your sources π§ββοΈπ
π¦ 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