diff options
author | Werner Koch <[email protected]> | 2001-12-06 20:47:30 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2001-12-06 20:47:30 +0000 |
commit | e4a72423ff597c16fc0b7e09ad7280b1f3df47ba (patch) | |
tree | c0b8c82e7168ff7a8729373b074ff8ee9cd79f88 /common | |
parent | added test certificate and secret key (diff) | |
download | gnupg-e4a72423ff597c16fc0b7e09ad7280b1f3df47ba.tar.gz gnupg-e4a72423ff597c16fc0b7e09ad7280b1f3df47ba.zip |
More error codes
Diffstat (limited to 'common')
-rw-r--r-- | common/errors.h | 3 | ||||
-rw-r--r-- | common/maperror.c | 2 |
2 files changed, 5 insertions, 0 deletions
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); |