gnutls_db_set_store_function(3)

πŸ’– gnutls_db_set_store_function β€” the manual page, but make it make sense πŸ’–

okay bestie, welcome to the gnutls docs πŸŽ€ this one lives in the gnutls manual (yes, that's the section 3 one, the C library one, not the command-line tool, iykyk).


✨ NAME ✨

gnutls_db_set_store_function β€” literally the API function, that's it, that's the name πŸ’…


🌸 SYNOPSIS 🌸

#include <gnutls/gnutls.h>

void gnutls_db_set_store_function(gnutls_session_t session,
                                  gnutls_db_store_func store_func);

πŸ¦‹ ARGUMENTS πŸ¦‹

  • gnutls_session_t session β€” bestie this is a gnutls_session_t type. That's the whole description. Iconic brevity honestly.
  • gnutls_db_store_func store_func β€” and this one is the function. The function in question. The star of the show 🌟

πŸ‘‘ DESCRIPTION πŸ‘‘

So here's the tea β˜•: this function sets the function that will be used to store data in the resumed sessions database. That's the whole vibe β€” you're handing gnutls a callback and saying "here, you store the stuff, I got you."

Heads up, no cap: that function must return 0 on success. If it doesn't, that's a you problem, not a gnutls problem 😭

Also lowkey important: the first argument to store_func will be null unless gnutls_db_set_ptr() has been called. So if you're out here wondering why your callback's first arg is giving void energy, it's because you never called gnutls_db_set_ptr(). fr fr.


πŸ’€ REPORTING BUGS πŸ’€

Found a bug? Not me manifesting one, but if you did β€” report it to <bugs@gnutls.org> 🫢

Home page is right here: 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, that's genuinely so generous of them πŸ’œ


🌈 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/


okay that's the whole page, you ate that πŸ“ go forth and store your session data responsibly, bestie πŸ’–

gnutls Β· version 3.8.13 Β· gnutls_db_set_store_function(3) β€” mwah, that's a wrap, periodt ✨🧚

πŸ“¦ where this page comes from