From a07ede17a274999f5501a631a5d8f0892bb85dc6 Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Wed, 24 Apr 2002 02:21:12 +0000 Subject: [PATCH] 2002-04-24 Marcus Brinkmann * engine-gpgsm.c (map_assuan_error): Add new error codes. --- gpgme/ChangeLog | 4 ++++ gpgme/engine-gpgsm.c | 14 ++++++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/gpgme/ChangeLog b/gpgme/ChangeLog index bd7da8f..5517fd8 100644 --- a/gpgme/ChangeLog +++ b/gpgme/ChangeLog @@ -1,3 +1,7 @@ +2002-04-24 Marcus Brinkmann + + * engine-gpgsm.c (map_assuan_error): Add new error codes. + 2002-04-23 Werner Koch * key.c (gpgme_key_get_ulong_attr): Swapped use of can_encrypt and diff --git a/gpgme/engine-gpgsm.c b/gpgme/engine-gpgsm.c index d78a520..e97a8a5 100644 --- a/gpgme/engine-gpgsm.c +++ b/gpgme/engine-gpgsm.c @@ -279,14 +279,14 @@ map_assuan_error (AssuanError err) case ASSUAN_Accept_Failed: return mk_error (General_Error); - /* The following error codes are meant as status codes. */ + /* The following error codes are meant as status codes. */ case ASSUAN_Not_Implemented: return mk_error (Not_Implemented); case ASSUAN_Canceled: return mk_error (Canceled); case ASSUAN_Unsupported_Algorithm: return mk_error (Not_Implemented); /* XXX Argh. */ - + /* These are errors internal to GPGME. */ case ASSUAN_No_Data_Available: case ASSUAN_No_Input: @@ -304,6 +304,11 @@ map_assuan_error (AssuanError err) case ASSUAN_Inquire_Unknown: case ASSUAN_Inquire_Error: case ASSUAN_Invalid_Option: + case ASSUAN_Invalid_Index: + case ASSUAN_Unexpected_Status: + case ASSUAN_Unexpected_Data: + case ASSUAN_Invalid_Status: + case ASSUAN_Not_Confirmed: return mk_error (General_Error); /* These are errors in the server. */ @@ -321,6 +326,11 @@ map_assuan_error (AssuanError err) case ASSUAN_No_Public_Key: case ASSUAN_No_Secret_Key: case ASSUAN_Invalid_Name: + case ASSUAN_Card_Error: /* XXX: Oh well. */ + case ASSUAN_Invalid_Card: /* XXX: Oh well. */ + case ASSUAN_No_PKCS15_App: /* XXX: Oh well. */ + case ASSUAN_Card_Not_Present: /* XXX: Oh well. */ + case ASSUAN_Invalid_Id: /* XXX: Oh well. */ return mk_error(Invalid_Key); case ASSUAN_Bad_Signature: -- 2.26.2