Blame doc/functions/gnutls_error_is_fatal

Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
@deftypefun {int} {gnutls_error_is_fatal} (int @var{error})
Packit Service 4684c1
@var{error}: is a GnuTLS error code, a negative error code
Packit Service 4684c1
Packit Service 4684c1
If a GnuTLS function returns a negative error code you may feed that
Packit Service 4684c1
value to this function to see if the error condition is fatal to
Packit Service 4684c1
a TLS session (i.e., must be terminated).
Packit Service 4684c1
Packit Service 4684c1
Note that you may also want to check the error code manually, since some
Packit Service 4684c1
non-fatal errors to the protocol (such as a warning alert or
Packit Service 4684c1
a rehandshake request) may be fatal for your program.
Packit Service 4684c1
Packit Service 4684c1
This function is only useful if you are dealing with errors from
Packit Service 4684c1
functions that relate to a TLS session (e.g., record layer or handshake
Packit Service 4684c1
layer handling functions).
Packit Service 4684c1
Packit Service 4684c1
@strong{Returns:} Non-zero value on fatal errors or zero on non-fatal.
Packit Service 4684c1
@end deftypefun