summaryrefslogtreecommitdiff
path: root/lib/gnutls_pk.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_pk.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_pk.c')
-rw-r--r--lib/gnutls_pk.c6
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) {