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>
* key.c (gpgme_key_get_ulong_attr): Swapped use of can_encrypt and

View File

@ -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: