More error codes and mappings
authorWerner Koch <wk@gnupg.org>
Sat, 19 Jan 2002 18:20:45 +0000 (18:20 +0000)
committerWerner Koch <wk@gnupg.org>
Sat, 19 Jan 2002 18:20:45 +0000 (18:20 +0000)
common/errors.h
common/maperror.c

index 33ccbba..4ce89d0 100644 (file)
@@ -76,6 +76,7 @@ enum {
   GNUPG_CRL_Too_Old = 47,
   GNUPG_Line_Too_Long = 48,
   GNUPG_Not_Trusted = 49,
+  GNUPG_Canceled = 50,
 };
 
 /* Status codes - fixme: should go into another file */
index 348b473..0e9f92f 100644 (file)
@@ -135,6 +135,8 @@ map_assuan_err (int err)
     case 0:
       break;
 
+    case ASSUAN_Canceled:        err = GNUPG_Canceled; break;
+
     case ASSUAN_Not_Implemented: err = GNUPG_Not_Implemented; break;
     case ASSUAN_Server_Fault:    err = GNUPG_Assuan_Server_Fault; break;
     case ASSUAN_No_Public_Key:   err = GNUPG_No_Public_Key; break;
@@ -174,6 +176,7 @@ map_to_assuan_status (int rc)
     case GNUPG_Invalid_Data:      rc = ASSUAN_Invalid_Data; break;
     case GNUPG_Invalid_Name:      rc = ASSUAN_Invalid_Name; break;
     case GNUPG_Not_Trusted:       rc = ASSUAN_Not_Trusted; break;
+    case GNUPG_Canceled:          rc = ASSUAN_Canceled; break;
 
     case GNUPG_Bad_PIN:
     case GNUPG_Bad_Passphrase: