2002-04-24 Marcus Brinkmann <marcus@g10code.de>

* engine-gpgsm.c (map_assuan_error): Add new error codes.
This commit is contained in:
Marcus Brinkmann 2002-04-24 02:21:12 +00:00
parent a559c32a55
commit a07ede17a2
2 changed files with 16 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2002-04-24 Marcus Brinkmann <marcus@g10code.de>
* engine-gpgsm.c (map_assuan_error): Add new error codes.
2002-04-23 Werner Koch <wk@gnupg.org> 2002-04-23 Werner Koch <wk@gnupg.org>
* key.c (gpgme_key_get_ulong_attr): Swapped use of can_encrypt and * key.c (gpgme_key_get_ulong_attr): Swapped use of can_encrypt and

View File

@ -279,14 +279,14 @@ map_assuan_error (AssuanError err)
case ASSUAN_Accept_Failed: case ASSUAN_Accept_Failed:
return mk_error (General_Error); 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: case ASSUAN_Not_Implemented:
return mk_error (Not_Implemented); return mk_error (Not_Implemented);
case ASSUAN_Canceled: case ASSUAN_Canceled:
return mk_error (Canceled); return mk_error (Canceled);
case ASSUAN_Unsupported_Algorithm: case ASSUAN_Unsupported_Algorithm:
return mk_error (Not_Implemented); /* XXX Argh. */ return mk_error (Not_Implemented); /* XXX Argh. */
/* These are errors internal to GPGME. */ /* These are errors internal to GPGME. */
case ASSUAN_No_Data_Available: case ASSUAN_No_Data_Available:
case ASSUAN_No_Input: case ASSUAN_No_Input:
@ -304,6 +304,11 @@ map_assuan_error (AssuanError err)
case ASSUAN_Inquire_Unknown: case ASSUAN_Inquire_Unknown:
case ASSUAN_Inquire_Error: case ASSUAN_Inquire_Error:
case ASSUAN_Invalid_Option: 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); return mk_error (General_Error);
/* These are errors in the server. */ /* These are errors in the server. */
@ -321,6 +326,11 @@ map_assuan_error (AssuanError err)
case ASSUAN_No_Public_Key: case ASSUAN_No_Public_Key:
case ASSUAN_No_Secret_Key: case ASSUAN_No_Secret_Key:
case ASSUAN_Invalid_Name: 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); return mk_error(Invalid_Key);
case ASSUAN_Bad_Signature: case ASSUAN_Bad_Signature: