Blame doc/functions/gnutls_alert_send

Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
@deftypefun {int} {gnutls_alert_send} (gnutls_session_t @var{session}, gnutls_alert_level_t @var{level}, gnutls_alert_description_t @var{desc})
Packit Service 4684c1
@var{session}: is a @code{gnutls_session_t}  type.
Packit Service 4684c1
Packit Service 4684c1
@var{level}: is the level of the alert
Packit Service 4684c1
Packit Service 4684c1
@var{desc}: is the alert description
Packit Service 4684c1
Packit Service 4684c1
This function will send an alert to the peer in order to inform
Packit Service 4684c1
him of something important (eg. his Certificate could not be verified).
Packit Service 4684c1
If the alert level is Fatal then the peer is expected to close the
Packit Service 4684c1
connection, otherwise he may ignore the alert and continue.
Packit Service 4684c1
Packit Service 4684c1
The error code of the underlying record send function will be
Packit Service 4684c1
returned, so you may also receive @code{GNUTLS_E_INTERRUPTED}  or
Packit Service 4684c1
@code{GNUTLS_E_AGAIN}  as well.
Packit Service 4684c1
Packit Service 4684c1
@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS}  (0) is returned, otherwise
Packit Service 4684c1
an error code is returned.
Packit Service 4684c1
@end deftypefun