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 Β© 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