1gnutls_error_is_fatal(3) gnutls gnutls_error_is_fatal(3)
2
3
4
6 gnutls_error_is_fatal - API function
7
9 #include <gnutls/gnutls.h>
10
11 int gnutls_error_is_fatal(int error);
12
14 int error is a GnuTLS error code, a negative error code
15
17 If a GnuTLS function returns a negative error code you may feed that
18 value to this function to see if the error condition is fatal to a TLS
19 session (i.e., must be terminated).
20
21 Note that you may also want to check the error code manually, since
22 some non-fatal errors to the protocol (such as a warning alert or a
23 rehandshake request) may be fatal for your program.
24
25 This function is only useful if you are dealing with errors from func‐
26 tions that relate to a TLS session (e.g., record layer or handshake
27 layer handling functions).
28
30 Non-zero value on fatal errors or zero on non-fatal.
31
33 Report bugs to <bugs@gnutls.org>.
34 Home page: https://www.gnutls.org
35
36
38 Copyright © 2001-2019 Free Software Foundation, Inc., and others.
39 Copying and distribution of this file, with or without modification,
40 are permitted in any medium without royalty provided the copyright
41 notice and this notice are preserved.
42
44 The full documentation for gnutls is maintained as a Texinfo manual.
45 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
46 visit
47
48 https://www.gnutls.org/manual/
49
50gnutls 3.6.8 gnutls_error_is_fatal(3)