gnutls_anti_replay_init(3)
π gnutls_anti_replay_init(3) π
okay bestie, welcome to the gnutls manual, this one's called gnutls_anti_replay_init and it's genuinely so good, let me tell you everything π«Ά
β¨ NAME β¨
gnutls_anti_replay_init β API function, and yes that's the whole name, no crumbs left behind π
πΈ SYNOPSIS πΈ
#include <gnutls/gnutls.h>
int gnutls_anti_replay_init(gnutls_anti_replay_t * anti_replay);
π ARGUMENTS π
gnutls_anti_replay_t * anti_replayβ bestie, this is a pointer to agnutls_anti_replay_ttype. That's the whole vibe. It's the lil slot where your brand-new context is gonna live β¨
π¦ DESCRIPTION π¦
so what this function does is allocate and initialize the anti_replay context, and it makes it usable for detecting replay attacks β which is, like, the whole point, we love a secure queen π
and then!! once you've got that context all set up and cute, you can attach it to a gnutls_session_t with gnutls_anti_replay_enable(). that's the moment it actually gets to do its job. the way that these two functions are literally a duo, main character energy fr fr π₯
β RETURNS β
Zero, or a negative error code on error. that's it, that's the whole deal β zero means slay, negative means something went sideways π
π SINCE π
3.6.5 β iconic since day one, periodt π
π REPORTING BUGS π
found a bug? not the vibe, but okay, tell the people:
- Report bugs to <bugs@gnutls.org>.
- Home page: https://www.gnutls.org
they wanna know, ngl π«Ά
π 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.
π§ 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/
π heads up bestie: thatanti_replaypointer is a pointer to agnutls_anti_replay_tβ don't be out here passing vibes instead of types, okay? and remember, zero is the good number, negative is the sad number.
and that's the page!! π this one came from gnutls version 3.8.13, filed under gnutls_anti_replay_init(3) β go forth and initialize responsibly, 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