gnutls_anti_re...et_add_function(3)
π gnutls_anti_re...et_add_function π
okay bestie, so this one lives in the gnutls manual and it's literally an API function. yes, the title got chopped mid-word, that's just how it is, we don't ask questions π«Ά
β¨ NAME β¨
gnutls_anti_replay_set_add_function β it's an API function, babe. that's the whole name.
πΈ SYNOPSIS πΈ
#include <gnutls/gnutls.h>
void gnutls_anti_replay_set_add_function(gnutls_anti_replay_t
anti_replay, gnutls_db_add_func add_func);
π ARGUMENTS π
gnutls_anti_replay_t anti_replayβ bestie this is agnutls_anti_replay_ttype. that's it, that's the vibe.gnutls_db_add_func add_funcβ and this one? it's the function. the function of the hour, the main character π
π¦ DESCRIPTION π¦
okay so here's what's happening. this sets the function that's gonna be used to store an entry if it's not already chillin' in the resumed sessions database. like, if the entry isn't there yet, this function rolls up and handles the storing, no cap.
so this function returns 0 if the entry gets successfully stored π and a negative error code otherwise π
and specifically β if the entry is already found in the database? it returns GNUTLS_E_DB_ENTRY_EXISTS. iconic behaviour honestly.
the arguments to the add_func are, and listen closely:
ptr: the pointer set withgnutls_anti_replay_set_ptr()exp_time: the expiration time of the entrykey: a pointer to the keydata: a pointer to data to store
and the data that gets set by this function can be examined using gnutls_db_check_entry_expire_time() and gnutls_db_check_entry_time(). so if you ever need to peek at it later, you know exactly where to go π
β SINCE β
3.6.5 β vintage but make it slay.
π REPORTING BUGS π
found a bug? don't suffer in silence bestie, report it 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. (yes, all of that, verbatim, we respect the legal girlies π)
π SEE ALSO π
the full documentation for gnutls is maintained as a Texinfo manual. so if the /usr/share/doc/gnutls/ directory does not contain the HTML form, go visit:
https://www.gnutls.org/manual/
ok that's the whole thing, nothing skipped, every option and argument and error code accounted for π go store your entries, bestie β¨
and that's a wrap on this page from the gnutls manual, version 3.8.13, page name gnutls_anti_re...et_add_function. mwah, bye ππ
π¦
π¦ 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