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 agnutls_session_ttype. 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 π
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
- 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