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 β€” a gnutls_session_t opaque 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 Β© 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