gnutls_error_is_fatal(3)
π gnutls_error_is_fatal(3) π
okay bestie, welcome to the gnutls manual β yes the whole thing, and yes we're doing this together π«Ά
β¨ NAME β¨
gnutls_error_is_fatal β literally just an API function, no cap
πΈ SYNOPSIS πΈ
#include <gnutls/gnutls.h>
int gnutls_error_is_fatal(int error);
π ARGUMENTS π
int errorβ this is a GnuTLS error code, and it's a negative error code. negative!! like the vibes when your handshake fails π
π¦ DESCRIPTION π¦
so here's the tea β β if some GnuTLS function hands you back a negative error code, you can feed that value straight into this function to find out if the error condition is fatal to a TLS session. and by fatal we mean, like, the session must be terminated. it's over, it's done, periodt π
but listen β you might also wanna check the error code manually, bestie, because some errors that are non-fatal to the protocol (think a warning alert, or a rehandshake request π) can still be totally fatal for your program. the protocol said "we're fine" and your app said "actually no π". so keep an eye on it.
and heads up: this function is only useful if you're dealing with errors from functions that relate to a TLS session β like, record layer or handshake layer handling functions. it's giving very specific-purpose energy, iykyk β¨
β RETURNS β
Non-zero value on fatal errors, or zero on non-fatal. that's it, that's the whole answer π
π REPORTING BUGS π
found a bug? not me being the one to tell you, but okay:
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, honestly β that's a genuinely generous license π«Ά
π§ 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/
go forth and read, queen π
and that's the whole page, bestie π this lil manual came to you from the gnutls manual, version 3.8.13, dated right alongside gnutls_error_is_fatal(3). mwah, take care of your sessions πβ¨
π¦ 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