gnutls_db_set_remove_function(3)
β¨ gnutls_db_set_remove_function(3) β the gnutls manual, bestie edition β¨
okay so you're deep in the gnutls docs and you found this lil guy π it's an API function, it lives in the gnutls manual, and honestly? it's giving "cleanup crew energy." let's get into it π§Ήβ¨
πΈ NAME πΈ
gnutls_db_set_remove_function β API function. that's it, that's the name, short and iconic π
π¦ SYNOPSIS π¦
#include <gnutls/gnutls.h>
void gnutls_db_set_remove_function(gnutls_session_t session,
gnutls_db_remove_func rem_func);
copy it exactly like that, no cap. the indentation wrap is just how the page do π
π ARGUMENTS π
gnutls_session_t sessionβ is agnutls_session_ttype. yes bestie, it's the session, it's always the session πgnutls_db_remove_func rem_funcβ is the function. the one you're handing over. the removal specialist π₯
π DESCRIPTION π
so what are we actually doing here? you're setting the function that's gonna be used to remove data from the resumed sessions database. that's the whole vibe. it's the "delete" button for your session store, and you get to decide what that button does ποΈβ¨
big rule: this function must return 0 on success. fr fr. zero means we ate, anything else means something went sideways π
and here's the lil detail that lowkey matters: the first argument to rem_func will be null unless gnutls_db_set_ptr() has been called. so if you're like "why is this pointer null" β that's why, bestie. call gnutls_db_set_ptr() and suddenly it's not null anymore π«Ά
π REPORTING BUGS π
found a bug? don't suffer in silence, tell the gnutls people π
- Report bugs to
<bugs@gnutls.org>. - 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, that's the license, and it's very 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/
and that's the page, bestie πΈ it's from gnutls 3.8.13, so if you're out here on some other version, double check your vibes π go forth and remove those sessions, main character ππ¦β¨
π¦ 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