gnutls_ext_set_data(3)
π gnutls_ext_set_data β the manual, but make it make sense π
okay bestie, this is a page from the gnutls manual (yes, the whole manual name is just gnutls, we're keeping it cute). Let's get into it β¨
πΈ NAME πΈ
gnutls_ext_set_data β the API function that lets you stash your lil private data on a session π
β¨ SYNOPSIS β¨
#include <gnutls/gnutls.h>
void gnutls_ext_set_data(gnutls_session_t session, unsigned tls_id,
gnutls_ext_priv_data_t data);
π«Ά ARGUMENTS π«Ά
gnutls_session_t sessionβ agnutls_session_topaque pointer. yeah it's opaque, we don't peek behind the curtain, we just pass it around πunsigned tls_idβ the numeric id of the extension. the digits, the numbers, the identity of your extension fr fr π’gnutls_ext_priv_data_t dataβ the private data to set. your lil bundle of secrets, your emotional support payload π
π DESCRIPTION π
So here's the vibe: this function lets an extension handler store data in the current session and then retrieve it later on. that's it, that's the whole thing. it's giving "leave a note for future you" energy π
and listen β the data you set here will be deallocated using the gnutls_ext_deinit_data_func. so it's not just your data, it's the deinit function's data now. no cap, that's how the cleanup works π§Ήβ¨
β SINCE β
3.4.0 β she's been here since 3.4.0, an icon, a legend, a moment in history π
π REPORTING BUGS π
found a bug? don't suffer in silence bestie, report it to bugs@gnutls.org. they wanna hear from you fr fr π
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. slay, legally speaking π
π 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/
like, go read the whole thing, it's lowkey a masterpiece π¦
and that's the whole page bestie!! this was the gnutls_ext_set_data(3) manual from gnutls version 3.8.13 β mwah, take care of yourself, hydrate, and go store some private data responsibly πβ¨ππ«Ά
π¦ 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