From e4a72423ff597c16fc0b7e09ad7280b1f3df47ba Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 6 Dec 2001 20:47:30 +0000 Subject: [PATCH] More error codes --- common/errors.h | 3 +++ common/maperror.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/common/errors.h b/common/errors.h index b704ff3c7..a21b492af 100644 --- a/common/errors.h +++ b/common/errors.h @@ -56,6 +56,9 @@ enum { GNUPG_Invalid_Data = 27, GNUPG_Assuan_Server_Fault = 28, GNUPG_Assuan_Error = 29, /* catch all assuan error */ + GNUPG_Invalid_Session_Key = 30, + GNUPG_Invalid_Sexp = 31, + GNUPG_Unsupported_Algorithm = 32, }; /* Status codes - fixme: should go into another file */ diff --git a/common/maperror.c b/common/maperror.c index aba0ee750..e073f16fe 100644 --- a/common/maperror.c +++ b/common/maperror.c @@ -42,6 +42,8 @@ map_ksba_err (int err) case -1: case 0: break; + + case KSBA_Unsupported_Algorithm: err = GNUPG_Unsupported_Algorithm; break; default: err = seterr (General_Error);