diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2002-10-24 17:42:44 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2002-10-24 17:42:44 +0000 |
commit | b7989715d84a2908fff71583b47da6442910964e (patch) | |
tree | aa7749a3b1bc96373bec8308aa028305cf3b63b4 /lib/gnutls_pk.c | |
parent | f42c22c62e41809a2dfeb868ec7c8697552af02e (diff) | |
download | gnutls-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_pk.c')
-rw-r--r-- | lib/gnutls_pk.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/gnutls_pk.c b/lib/gnutls_pk.c index 73ce3f9fef..5b70b62236 100644 --- a/lib/gnutls_pk.c +++ b/lib/gnutls_pk.c @@ -520,7 +520,7 @@ static int _gnutls_pk_encrypt(int algo, GNUTLS_MPI * resarr, GNUTLS_MPI data, GN default: gnutls_assert(); - return GNUTLS_E_UNKNOWN_KX_ALGORITHM; + return GNUTLS_E_INTERNAL_ERROR; } if (rc != 0) { @@ -583,7 +583,7 @@ static int _gnutls_pk_decrypt(int algo, GNUTLS_MPI * resarr, GNUTLS_MPI data, GN default: gnutls_assert(); - return GNUTLS_E_UNKNOWN_KX_ALGORITHM; + return GNUTLS_E_INTERNAL_ERROR; } if (rc != 0) { @@ -652,7 +652,7 @@ int _gnutls_pk_sign(int algo, GNUTLS_MPI* data, GNUTLS_MPI hash, GNUTLS_MPI * pk default: gnutls_assert(); - return GNUTLS_E_UNKNOWN_KX_ALGORITHM; + return GNUTLS_E_INTERNAL_ERROR; } if (rc != 0) { |