summaryrefslogtreecommitdiff
path: root/lib/gnutls_handshake.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2002-10-24 17:42:44 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2002-10-24 17:42:44 +0000
commitb7989715d84a2908fff71583b47da6442910964e (patch)
treeaa7749a3b1bc96373bec8308aa028305cf3b63b4 /lib/gnutls_handshake.c
parentf42c22c62e41809a2dfeb868ec7c8697552af02e (diff)
downloadgnutls-b7989715d84a2908fff71583b47da6442910964e.tar.gz
Added more descriptive error codes to be returned by gnutls_strerror(). Removed old and unused error codes.
Diffstat (limited to 'lib/gnutls_handshake.c')
-rw-r--r--lib/gnutls_handshake.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/gnutls_handshake.c b/lib/gnutls_handshake.c
index c0f2fb03ea..fc8321b50d 100644
--- a/lib/gnutls_handshake.c
+++ b/lib/gnutls_handshake.c
@@ -618,7 +618,7 @@ int _gnutls_server_select_suite(gnutls_session session, opaque *data, int datale
_gnutls_handshake_log
("HSK: Cannot find the appropriate handler for the KX algorithm\n");
gnutls_assert();
- return GNUTLS_E_UNKNOWN_CIPHER_TYPE;
+ return GNUTLS_E_INTERNAL_ERROR;
}
return 0;
@@ -1090,7 +1090,7 @@ static int _gnutls_client_set_ciphersuite(gnutls_session session,
if (z != 0) {
gnutls_assert();
- return GNUTLS_E_UNKNOWN_CIPHER_TYPE;
+ return GNUTLS_E_UNKNOWN_CIPHER_SUITE;
}
memcpy(session->security_parameters.
@@ -1131,7 +1131,7 @@ static int _gnutls_client_set_ciphersuite(gnutls_session session,
_gnutls_handshake_log
("HSK: Cannot find the appropriate handler for the KX algorithm\n");
gnutls_assert();
- return GNUTLS_E_UNKNOWN_CIPHER_TYPE;
+ return GNUTLS_E_INTERNAL_ERROR;
}