diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2013-11-06 22:00:08 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2013-11-06 22:00:08 +0100 |
commit | 54fa17c9d57e90d88e1c5483f3b2070f8d63a0e9 (patch) | |
tree | c422348c3c02256d90c02b181cbb51f9e5370011 | |
parent | 48bd5b93f02f0d4f59b4a34c497c0ee2f0236fd6 (diff) | |
download | gnutls-54fa17c9d57e90d88e1c5483f3b2070f8d63a0e9.tar.gz |
doc update
-rw-r--r-- | lib/gnutls_errors.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/gnutls_errors.c b/lib/gnutls_errors.c index 2870e466c6..8bb6118af1 100644 --- a/lib/gnutls_errors.c +++ b/lib/gnutls_errors.c @@ -366,16 +366,19 @@ static const gnutls_error_entry error_algorithms[] = { * @error: is a GnuTLS error code, a negative error code * * If a GnuTLS function returns a negative error code you may feed that - * value to this function to see if the error condition is fatal. + * value to this function to see if the error condition is fatal to + * a TLS session (i.e., must be terminated). + * * Note that you may also want to check the error code manually, since some * non-fatal errors to the protocol (such as a warning alert or * a rehandshake request) may be fatal for your program. * * This function is only useful if you are dealing with errors from - * the record layer or the handshake layer. + * functions that relate to a TLS session (e.g., record layer or handshake + * layer handling functions). * - * Returns: 1 if the error code is fatal, for positive @error values, - * 0 is returned. For unknown @error values, -1 is returned. + * Returns: zero on non fatal errors or positive @error values. Non-zero + * on fatal error codes. **/ int gnutls_error_is_fatal (int error) |