More error codes

This commit is contained in:
Werner Koch 2001-12-06 20:47:30 +00:00
parent f8c249a9d6
commit e4a72423ff
2 changed files with 5 additions and 0 deletions

View 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 */

View 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);