gnutls_session_set_ptr(3)

πŸ’– gnutls_session_set_ptr β€” bestie edition πŸ’–

okay so this page lives in the gnutls manual (yes the crypto library, yes the one you keep typing wrong) and it's about one tiny little function that does one tiny little thing and honestly? iconic.


✨ NAME ✨

gnutls_session_set_ptr β€” an API function, that's literally its whole job description 🫢


🌸 SYNOPSIS 🌸

#include <gnutls/gnutls.h>

void gnutls_session_set_ptr(gnutls_session_t session, void * ptr);

that's it. that's the whole vibe. no return value, no drama, just vibes and a pointer. πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • gnutls_session_t session β€” bestie this is a gnutls_session_t type. it's the session. the main character of the operation. 🌟
  • void * ptr β€” and this? this is the user pointer. your pointer. your little guy. the thing you want to smuggle along for the ride. 🧳✨

πŸ’« DESCRIPTION πŸ’«

so here's the tea, fr fr: this function sets β€” like, associates β€” the user-given pointer ptr to the session structure. that's the whole thing. you hand it a pointer, it goes "noted πŸ’…" and sticks it onto the session.

and then later? you can get it back with gnutls_session_get_ptr(). it's giving coat check. it's giving "here's my bag, give me the little ticket". 🎟️

no cap, that's the entire function. short king behavior. we love to see it. πŸ‘‘


😭 REPORTING BUGS 😭

found something cursed? don't suffer in silence, bestie:

they want to hear from you. it's a whole thing. 🫢


Copyright Β© 2001-2023 Free Software Foundation, Inc., and others.

and the licensing part, which is genuinely important so read it with me: copying and distribution of this file, with or without modification, are permitted in any medium without royalty β€” provided that the copyright notice and this notice are preserved. so like, go off, remix it, share it, but keep the receipts. 🧾✨


🌈 SEE ALSO 🌈

the full documentation for gnutls is maintained as a Texinfo manual. so if the /usr/share/doc/gnutls/ directory does not contain the HTML form, then bestie you gotta go visit:

https://www.gnutls.org/manual/

that's the door. that's where the lore lives. πŸ¦‹


and that's the page!! mwah πŸ’‹ this was gnutls version 3.8.13, the gnutls_session_set_ptr(3) page, brought to you with love, pointers, and zero shame. stay slaying, stay linking, and pls for the love of everything free your ptr responsibly πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from