GNUTLS_TDB_SET_STORE_COMMITMENT_FUNC(3)
π gnutls_tdb_set_store_commitment_func β bestie edition π
okay so this is a page from the gnutls manual, and it's about one very specific little function. sit down, hydrate, let's get into it π«Ά
β¨ NAME β¨
gnutls_tdb_set_store_commitment_func β literally just an API function, that's the whole name, no notes π
β¨ SYNOPSIS β¨
#include <gnutls/gnutls.h>
void gnutls_tdb_set_store_commitment_func(gnutls_tdb_t tdb,
gnutls_tdb_store_commitment_func cstore);
yes bestie, she returns void. she does her thing and she leaves. iconic behaviour honestly π
β¨ ARGUMENTS β¨
gnutls_tdb_t tdbβ the trust storage. that's the thing we're attaching stuff to, she's the main character here πgnutls_tdb_store_commitment_func cstoreβ the commitment storage function. the little callback we're introducing totdb, like a plus-one at the function party π
β¨ DESCRIPTION β¨
so what this function does is associate a commitment (hash) storage function with the trust storage structure. matching besties, but for storage. no cap. π₯
and the function you're passing in? it's shaped like this, exactly:
int gnutls_tdb_store_commitment_func(const char* db_name, const char*
host, const char* service, time_t expiration, gnutls_digest_algorithm_t,
const gnutls_datum_t* hash);
and the tea on db_name: it should be used to pass any private data to this function. so if you were wondering where your secret little extras go β that's the slot, bestie πβ¨
β¨ 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. (translation: you can share this, just keep the receipts, periodt π)
β¨ 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 whole vibe check, bestie π¦ go forth and store those commitments. this was page gnutls 3.8.13, from the gnutls manual set, and yes it's giving classic manpage energy. mwah ππ
π¦ 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