mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
A small step for GnuPG but a huge leap for error codes.
(Sorry, it does not build currently - I need to check it in to avoid duplicate work.)
This commit is contained in:
parent
4d3fecee56
commit
bd820bad4f
21 changed files with 273 additions and 308 deletions
|
@ -23,91 +23,6 @@
|
|||
|
||||
#include "util.h"
|
||||
|
||||
#ifndef GPG_ERR_SOURCE_DEFAULT
|
||||
/* Error numbers. Note, that they are onkly used for old code not yet
|
||||
converted to libgpg-error. */
|
||||
enum {
|
||||
GNUPG_EOF = -1,
|
||||
GNUPG_No_Error = 0,
|
||||
GNUPG_General_Error = 1,
|
||||
GNUPG_Out_Of_Core = 2,
|
||||
GNUPG_Invalid_Value = 3,
|
||||
GNUPG_IO_Error = 4,
|
||||
GNUPG_Resource_Limit = 5,
|
||||
GNUPG_Internal_Error = 6,
|
||||
GNUPG_Bad_Certificate = 7,
|
||||
GNUPG_Bad_Certificate_Chain = 8,
|
||||
GNUPG_Missing_Certificate = 9,
|
||||
GNUPG_No_Data = 10,
|
||||
GNUPG_Bad_Signature = 11,
|
||||
GNUPG_Not_Implemented = 12,
|
||||
GNUPG_Conflict = 13,
|
||||
GNUPG_Bug = 14,
|
||||
GNUPG_Read_Error = 15,
|
||||
GNUPG_Write_Error = 16,
|
||||
GNUPG_Incomplete_Line = 17,
|
||||
GNUPG_Invalid_Response = 18,
|
||||
GNUPG_No_Agent = 19,
|
||||
GNUPG_Agent_Error = 20,
|
||||
GNUPG_No_Public_Key = 21,
|
||||
GNUPG_No_Secret_Key = 22,
|
||||
GNUPG_File_Open_Error = 23,
|
||||
GNUPG_File_Create_Error = 24,
|
||||
GNUPG_File_Error = 25,
|
||||
GNUPG_Not_Supported = 26,
|
||||
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,
|
||||
GNUPG_No_PIN_Entry = 33,
|
||||
GNUPG_PIN_Entry_Error = 34,
|
||||
GNUPG_Bad_PIN = 35,
|
||||
GNUPG_Bad_Passphrase = 36,
|
||||
GNUPG_Invalid_Name = 37,
|
||||
GNUPG_Bad_Public_Key = 38,
|
||||
GNUPG_Bad_Secret_Key = 39,
|
||||
GNUPG_Bad_Data = 40,
|
||||
GNUPG_Invalid_Parameter = 41,
|
||||
GNUPG_Tribute_to_D_A = 42,
|
||||
GNUPG_No_Dirmngr = 43,
|
||||
GNUPG_Dirmngr_Error = 44,
|
||||
GNUPG_Certificate_Revoked = 45,
|
||||
GNUPG_No_CRL_Known = 46,
|
||||
GNUPG_CRL_Too_Old = 47,
|
||||
GNUPG_Line_Too_Long = 48,
|
||||
GNUPG_Not_Trusted = 49,
|
||||
GNUPG_Canceled = 50,
|
||||
GNUPG_Bad_CA_Certificate = 51,
|
||||
GNUPG_Certificate_Expired = 52,
|
||||
GNUPG_Certificate_Too_Young = 53,
|
||||
GNUPG_Unsupported_Certificate = 54,
|
||||
GNUPG_Unknown_Sexp = 55,
|
||||
GNUPG_Unsupported_Protection = 56,
|
||||
GNUPG_Corrupted_Protection = 57,
|
||||
GNUPG_Ambiguous_Name = 58,
|
||||
GNUPG_Card_Error = 59,
|
||||
GNUPG_Card_Reset = 60,
|
||||
GNUPG_Card_Removed = 61,
|
||||
GNUPG_Invalid_Card = 62,
|
||||
GNUPG_Card_Not_Present = 63,
|
||||
GNUPG_No_PKCS15_App = 64,
|
||||
GNUPG_Not_Confirmed = 65,
|
||||
GNUPG_Configuration_Error = 66,
|
||||
GNUPG_No_Policy_Match = 67,
|
||||
GNUPG_Invalid_Index = 68,
|
||||
GNUPG_Invalid_Id = 69,
|
||||
GNUPG_No_Scdaemon = 70,
|
||||
GNUPG_Scdaemon_Error = 71,
|
||||
GNUPG_Unsupported_Protocol = 72,
|
||||
GNUPG_Bad_PIN_Method = 73,
|
||||
GNUPG_Card_Not_Initialized = 74,
|
||||
GNUPG_Unsupported_Operation = 75,
|
||||
GNUPG_Wrong_Key_Usage = 76,
|
||||
};
|
||||
#endif /* !GPG_ERR_SOURCE_DEFAULT */
|
||||
|
||||
/* Status codes - fixme: should go into another file */
|
||||
enum {
|
||||
STATUS_ENTER,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue