gnutls_tdb_set_store_func(3)
π gnutls_tdb_set_store_func(3) β the gnutls manual, bestie edition π
okay so you found your way into the gnutls man pages, and honestly? iconic. this one lives in the gnutls manual (section 3, library functions, we love a lowkey classic), and it's all about teaching your trust database where to stash stuff. let's get into it π«Ά
β¨ NAME β¨
gnutls_tdb_set_store_func β it's an API function, fr fr π
πΈ SYNOPSIS πΈ
#include <gnutls/gnutls.h>
void gnutls_tdb_set_store_func(gnutls_tdb_t tdb, gnutls_tdb_store_func
store);
like, yes, that's the whole thing. she's short and she knows it β¨
π ARGUMENTS π
gnutls_tdb_t tdbβ the trust storage. your lil database bestie, the one holding all the trust info πgnutls_tdb_store_func storeβ the storage function. this is the callback you're handing over so it can do the actual storing πΈ
π¦ DESCRIPTION π¦
so what this function does is it associates a storage function with the trust storage structure. literally matchmaking: the tdb meets the store function and now they're linked for life π
the function you're passing in has to look like this:
int gnutls_tdb_store_func(const char* db_name, const char* host, const
char* service, time_t expiration, const gnutls_datum_t* pubkey);
and the important bit, the way that db_name is literally meant to be used to pass any private data to this function π so if you were wondering "what's db_name for, bestie?" β that's your answer. private data goes there. no cap.
π REPORTING BUGS π
found a bug? don't be shy, report it:
- Report bugs to <bugs@gnutls.org>.
- Home page: https://www.gnutls.org
they wanna hear from you, fr fr π«Ά
π 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.
(so like, yes, you can share it, just keep the receipts π )
π 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/
that's the mothership. go there if you want the whole saga π
and that's the page, bestie β¨ this one came from gnutls 3.8.13, so if you're running that version you're literally holding the exact same energy π k bye, go store some trust, you absolute 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