More error codes
authorWerner Koch <wk@gnupg.org>
Thu, 6 Dec 2001 20:47:30 +0000 (20:47 +0000)
committerWerner Koch <wk@gnupg.org>
Thu, 6 Dec 2001 20:47:30 +0000 (20:47 +0000)
common/errors.h
common/maperror.c

index b704ff3..a21b492 100644 (file)
@@ -56,6 +56,9 @@ enum {
   GNUPG_Invalid_Data = 27,
   GNUPG_Assuan_Server_Fault = 28,
   GNUPG_Assuan_Error = 29, /* catch all assuan error */
+  GNUPG_Invalid_Session_Key = 30,
+  GNUPG_Invalid_Sexp = 31,
+  GNUPG_Unsupported_Algorithm = 32,
 };
 
 /* Status codes - fixme: should go into another file */
index aba0ee7..e073f16 100644 (file)
@@ -42,6 +42,8 @@ map_ksba_err (int err)
     case -1:
     case 0:
       break;
+
+    case KSBA_Unsupported_Algorithm: err = GNUPG_Unsupported_Algorithm; break;
       
     default:
       err = seterr (General_Error);