1gnutls_error_is_fatal(3) gnutls gnutls_error_is_fatal(3)
2
3
4
6 gnutls_error_is_fatal - Returns non-zero in case of a fatal error
7
9 #include <gnutls/gnutls.h>
10
11 int gnutls_error_is_fatal(int error);
12
14 int error is an error returned by a gnutls function. Error should be
15 a negative value.
16
18 If a function returns a negative value you may feed that value to this
19 function to see if it is fatal. Returns 1 for a fatal error 0 other‐
20 wise. However you may want to check the error code manually, since some
21 non-fatal errors to the protocol may be fatal for you (your program).
22
23 This is only useful if you are dealing with errors from the record
24 layer or the handshake layer.
25
27 Report bugs to <bug-gnutls@gnu.org>.
28
30 Copyright © 2006 Free Software Foundation.
31 Permission is granted to make and distribute verbatim copies of this
32 manual provided the copyright notice and this permission notice are
33 preserved on all copies.
34
36 The full documentation for gnutls is maintained as a Texinfo manual.
37 If the info and gnutls programs are properly installed at your site,
38 the command
39
40 info gnutls
41
42 should give you access to the complete manual.
43
44
45
46gnutls 1.6.3 gnutls_error_is_fatal(3)