* maperror.c: Add mapping for Not_Trusted.
authorWerner Koch <wk@gnupg.org>
Tue, 15 Jan 2002 13:02:13 +0000 (13:02 +0000)
committerWerner Koch <wk@gnupg.org>
Tue, 15 Jan 2002 13:02:13 +0000 (13:02 +0000)
assuan/assuan.h
common/ChangeLog
common/errors.h
common/maperror.c

index 35a693b..477e2de 100644 (file)
@@ -85,6 +85,7 @@ typedef enum {
   ASSUAN_Cert_Revoked = 301,
   ASSUAN_No_CRL_For_Cert = 302,
   ASSUAN_CRL_Too_Old = 303,
+  ASSUAN_Not_Trusted = 304,
 
 } AssuanError;
 
index a727602..6e987a9 100644 (file)
@@ -1,3 +1,7 @@
+2002-01-15  Werner Koch  <wk@gnupg.org>
+
+       * maperror.c: Add mapping for Not_Trusted. 
+
 2002-01-11  Werner Koch  <wk@gnupg.org>
 
        * maperror.c (map_assuan_err): Codes for CRL
index 5632495..33ccbba 100644 (file)
@@ -74,6 +74,8 @@ enum {
   GNUPG_Certificate_Revoked = 45,
   GNUPG_No_CRL_Known = 46,
   GNUPG_CRL_Too_Old = 47,
+  GNUPG_Line_Too_Long = 48,
+  GNUPG_Not_Trusted = 49,
 };
 
 /* Status codes - fixme: should go into another file */
index ba3a84b..348b473 100644 (file)
@@ -144,6 +144,9 @@ map_assuan_err (int err)
     case ASSUAN_No_CRL_For_Cert: err = GNUPG_No_CRL_Known; break;       
     case ASSUAN_CRL_Too_Old:     err = GNUPG_CRL_Too_Old; break;        
 
+    case ASSUAN_Not_Trusted:     err = GNUPG_Not_Trusted; break;
+
+
     default:
       err = err < 100? GNUPG_Assuan_Server_Fault : GNUPG_Assuan_Error;
       break;
@@ -170,6 +173,7 @@ map_to_assuan_status (int rc)
     case GNUPG_No_Secret_Key:     rc = ASSUAN_No_Secret_Key; break;
     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_Bad_PIN:
     case GNUPG_Bad_Passphrase: