gnutls_ext_get_name2(3)
π gnutls_ext_get_name2 β the glow-up name-finder β¨
okay bestie, so this one lives in the gnutls manual (section 3, the library-functions girlies π
) and it's genuinely one of the cutest little helpers in the whole TLS toolbox. fr fr.
πΈ NAME πΈ
gnutls_ext_get_name2 β it's the API function that turns a TLS extension's numeric ID into a string you can actually read with your human eyes π
π SYNOPSIS π
#include <gnutls/gnutls.h>
const char * gnutls_ext_get_name2(gnutls_session_t session, unsigned int
tls_id, gnutls_ext_parse_type_t parse_point);
like. look at her. three arguments, returns a const char *. iconic behavior honestly π«Ά
π¦ ARGUMENTS π¦
gnutls_session_t sessionβ agnutls_session_topaque pointer. yeah she's opaque, we don't peer inside, we just pass her along πunsigned int tls_idβ is a TLS extension numeric ID. the raw number, the unglamorous digits, the before-picture πgnutls_ext_parse_type_t parse_pointβ the parse type of the extension. yes bestie, the parse point matters, it's part of the vibe check π
β¨ DESCRIPTION β¨
Convert a TLS extension numeric ID to a printable string.
that's it. that's the whole thing. she takes the number, she hands you back something you can actually print. no cap, sometimes the simplest girls are the most useful π
π« RETURNS π«
a pointer to a string that contains the name of the specified cipher, or NULL.
bestie heads up: it says "cipher" in the original, we are NOT editing that, that is what it says, and also NULL is a real possibility so please check before you go dereferencing her π
π REPORTING BUGS π
found a bug? do NOT suffer in silence, that's not the energy π«Ά
- Report bugs to <bugs@gnutls.org>.
- Home page: https://www.gnutls.org
π COPYRIGHT π
Copyright Β© 2001-2023 Free Software Foundation, Inc., and others.
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved.
like. free. no royalty. just keep the notice. slay π
π SEE ALSO π
The full documentation for gnutls is maintained as a Texinfo manual. If the /usr/share/doc/gnutls/ directory does not contain the HTML form visit
https://www.gnutls.org/manual/
go read the whole thing, it's giving encyclopedia but make it TLS πβ¨
gnutls version 3.8.13, dated the same era as that copyright, and this page is literally named gnutls_ext_get_name2(3) β mwah, take care of her, she's yours now ππ¦π
π¦ where this page comes from
- alpine 3.22: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.23: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.24: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- arch rolling: gnutls 3.8.13-3 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- ubuntu stonking: gnutls-doc 3.8.13-1ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms