diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-09-23 23:08:55 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-09-23 23:08:55 +0200 |
commit | 3cc4fbdbdcb973972029e98c60597b54c2c0006e (patch) | |
tree | a00be9b68523bf1d2fa28799ebdce4bd64c1c65a | |
parent | 1d55a576b587fadb7576853c6999b35d2599762b (diff) | |
download | gnutls-3cc4fbdbdcb973972029e98c60597b54c2c0006e.tar.gz |
changed the fatality level of some errors.
-rw-r--r-- | lib/gnutls_errors.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/gnutls_errors.c b/lib/gnutls_errors.c index 8e6bd40845..88c603528d 100644 --- a/lib/gnutls_errors.c +++ b/lib/gnutls_errors.c @@ -43,7 +43,9 @@ struct gnutls_error_entry const char *desc; const char *_name; int number; - int fatal; + int fatal; /* whether this error is fatal and the session for handshake + * should be terminated. + */ }; typedef struct gnutls_error_entry gnutls_error_entry; @@ -92,7 +94,7 @@ static const gnutls_error_entry error_algorithms[] = { GNUTLS_E_NO_CERTIFICATE_FOUND, 1), ERROR_ENTRY (N_("There is already a crypto algorithm with lower priority."), - GNUTLS_E_CRYPTO_ALREADY_REGISTERED, 0), + GNUTLS_E_CRYPTO_ALREADY_REGISTERED, 1), ERROR_ENTRY (N_("No temporary RSA parameters were found."), GNUTLS_E_NO_TEMPORARY_RSA_PARAMS, 1), @@ -140,7 +142,7 @@ static const gnutls_error_entry error_algorithms[] = { ERROR_ENTRY (N_("Parsing error in password file."), GNUTLS_E_SRP_PWD_PARSING_ERROR, 1), ERROR_ENTRY (N_("The requested data were not available."), - GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE, 0), + GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE, 1), ERROR_ENTRY (N_("Error in the pull function."), GNUTLS_E_PULL_ERROR, 1), ERROR_ENTRY (N_("Error in the push function."), GNUTLS_E_PUSH_ERROR, 1), ERROR_ENTRY (N_ |