1gnutls_error_to_alert(3)            gnutls            gnutls_error_to_alert(3)
2
3
4

NAME

6       gnutls_error_to_alert  -  This  function returns an alert code based on
7       the given error code
8

SYNOPSIS

10       #include <gnutls/gnutls.h>
11
12       int gnutls_error_to_alert(int err, int * level);
13

ARGUMENTS

15       int err     is a negative integer
16
17       int * level the alert level will be stored there
18

DESCRIPTION

20       Returns an alert depending on the error code returned by a gnutls func‐
21       tion. All alerts sent by this function should be considered fatal.  The
22       only exception is when err ==  GNUTLS_E_REHANDSHAKE,  where  a  warning
23       alert  should be sent to the peer indicating that no renegotiation will
24       be performed.
25
26       If the return value is GNUTLS_E_INVALID_REQUEST, then there was no map‐
27       ping to an alert.
28

REPORTING BUGS

30       Report bugs to <bug-gnutls@gnu.org>.
31
33       Copyright © 2006 Free Software Foundation.
34       Permission  is  granted  to make and distribute verbatim copies of this
35       manual provided the copyright notice and  this  permission  notice  are
36       preserved on all copies.
37

SEE ALSO

39       The  full  documentation  for gnutls is maintained as a Texinfo manual.
40       If the info and gnutls programs are properly installed  at  your  site,
41       the command
42
43              info gnutls
44
45       should give you access to the complete manual.
46
47
48
49gnutls                               1.6.3            gnutls_error_to_alert(3)
Impressum