Tizen 2.1 base
[external/libgpg-error.git] / src / err-codes.h.in
1 # err-codes.h.in - List of error codes and their description input file.
2 /* err-codes.h - List of error codes and their description.
3    Copyright (C) 2003, 2004 g10 Code GmbH
4
5    This file is part of libgpg-error.
6
7    libgpg-error is free software; you can redistribute it and/or
8    modify it under the terms of the GNU Lesser General Public License
9    as published by the Free Software Foundation; either version 2.1 of
10    the License, or (at your option) any later version.
11  
12    libgpg-error is distributed in the hope that it will be useful, but
13    WITHOUT ANY WARRANTY; without even the implied warranty of
14    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15    Lesser General Public License for more details.
16  
17    You should have received a copy of the GNU Lesser General Public
18    License along with libgpg-error; if not, write to the Free
19    Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
20    02111-1307, USA.  */
21
22 # Everything up to the first line that starts with a number in the
23 # first column is copied into the output verbatim.  Then, empty lines
24 # are ignored.  Other lines must have an error code number, followed
25 # by one or more <tab> characters, followed by the error code symbol,
26 # followed by one or more <tab> characters, followed by the error
27 # message.  Trailing whitespace is removed.  The error codes should be
28 # sorted.  The last line should not have a number, but only a <tab>,
29 # followed by a dummy field, followed by a <tab>, followed by a
30 # description for error codes that are not in the list.
31
32 0       GPG_ERR_NO_ERROR                Success
33 1       GPG_ERR_GENERAL                 General error
34 2       GPG_ERR_UNKNOWN_PACKET          Unknown packet
35 3       GPG_ERR_UNKNOWN_VERSION         Unknown version in packet
36 4       GPG_ERR_PUBKEY_ALGO             Invalid public key algorithm
37 5       GPG_ERR_DIGEST_ALGO             Invalid digest algorithm
38 6       GPG_ERR_BAD_PUBKEY              Bad public key
39 7       GPG_ERR_BAD_SECKEY              Bad secret key
40 8       GPG_ERR_BAD_SIGNATURE           Bad signature
41 9       GPG_ERR_NO_PUBKEY               No public key
42 10      GPG_ERR_CHECKSUM                Checksum error
43 11      GPG_ERR_BAD_PASSPHRASE          Bad passphrase
44 12      GPG_ERR_CIPHER_ALGO             Invalid cipher algorithm
45 13      GPG_ERR_KEYRING_OPEN            Keyring open
46 14      GPG_ERR_INV_PACKET              Invalid packet
47 15      GPG_ERR_INV_ARMOR               Invalid armor
48 16      GPG_ERR_NO_USER_ID              No user ID
49 17      GPG_ERR_NO_SECKEY               No secret key
50 18      GPG_ERR_WRONG_SECKEY            Wrong secret key used
51 19      GPG_ERR_BAD_KEY                 Bad session key
52 20      GPG_ERR_COMPR_ALGO              Unknown compression algorithm
53 21      GPG_ERR_NO_PRIME                Number is not prime
54 22      GPG_ERR_NO_ENCODING_METHOD      Invalid encoding method
55 23      GPG_ERR_NO_ENCRYPTION_SCHEME    Invalid encryption scheme
56 24      GPG_ERR_NO_SIGNATURE_SCHEME     Invalid signature scheme
57 25      GPG_ERR_INV_ATTR                Invalid attribute
58 26      GPG_ERR_NO_VALUE                No value
59 27      GPG_ERR_NOT_FOUND               Not found
60 28      GPG_ERR_VALUE_NOT_FOUND         Value not found
61 29      GPG_ERR_SYNTAX                  Syntax error
62 30      GPG_ERR_BAD_MPI                 Bad MPI value
63 31      GPG_ERR_INV_PASSPHRASE          Invalid passphrase
64 32      GPG_ERR_SIG_CLASS               Invalid signature class
65 33      GPG_ERR_RESOURCE_LIMIT          Resources exhausted
66 34      GPG_ERR_INV_KEYRING             Invalid keyring
67 35      GPG_ERR_TRUSTDB                 Trust DB error
68 36      GPG_ERR_BAD_CERT                Bad certificate
69 37      GPG_ERR_INV_USER_ID             Invalid user ID
70 38      GPG_ERR_UNEXPECTED              Unexpected error
71 39      GPG_ERR_TIME_CONFLICT           Time conflict
72 40      GPG_ERR_KEYSERVER               Keyserver error
73 41      GPG_ERR_WRONG_PUBKEY_ALGO       Wrong public key algorithm
74 42      GPG_ERR_TRIBUTE_TO_D_A          Tribute to D. A.
75 43      GPG_ERR_WEAK_KEY                Weak encryption key
76 44      GPG_ERR_INV_KEYLEN              Invalid key length
77 45      GPG_ERR_INV_ARG                 Invalid argument
78 46      GPG_ERR_BAD_URI                 Syntax error in URI
79 47      GPG_ERR_INV_URI                 Invalid URI
80 48      GPG_ERR_NETWORK                 Network error
81 49      GPG_ERR_UNKNOWN_HOST            Unknown host
82 50      GPG_ERR_SELFTEST_FAILED         Selftest failed
83 51      GPG_ERR_NOT_ENCRYPTED           Data not encrypted
84 52      GPG_ERR_NOT_PROCESSED           Data not processed
85 53      GPG_ERR_UNUSABLE_PUBKEY         Unusable public key
86 54      GPG_ERR_UNUSABLE_SECKEY         Unusable secret key
87 55      GPG_ERR_INV_VALUE               Invalid value
88 56      GPG_ERR_BAD_CERT_CHAIN          Bad certificate chain
89 57      GPG_ERR_MISSING_CERT            Missing certificate
90 58      GPG_ERR_NO_DATA                 No data
91 59      GPG_ERR_BUG                     Bug
92 60      GPG_ERR_NOT_SUPPORTED           Not supported
93 61      GPG_ERR_INV_OP                  Invalid operation code
94 62      GPG_ERR_TIMEOUT                 Timeout
95 63      GPG_ERR_INTERNAL                Internal error
96 64      GPG_ERR_EOF_GCRYPT              EOF (gcrypt)
97 65      GPG_ERR_INV_OBJ                 Invalid object
98 66      GPG_ERR_TOO_SHORT               Provided object is too short
99 67      GPG_ERR_TOO_LARGE               Provided object is too large
100 68      GPG_ERR_NO_OBJ                  Missing item in object
101 69      GPG_ERR_NOT_IMPLEMENTED         Not implemented
102 70      GPG_ERR_CONFLICT                Conflicting use
103 71      GPG_ERR_INV_CIPHER_MODE         Invalid cipher mode
104 72      GPG_ERR_INV_FLAG                Invalid flag
105 73      GPG_ERR_INV_HANDLE              Invalid handle
106 74      GPG_ERR_TRUNCATED               Result truncated
107 75      GPG_ERR_INCOMPLETE_LINE         Incomplete line
108 76      GPG_ERR_INV_RESPONSE            Invalid response
109 77      GPG_ERR_NO_AGENT                No agent running
110 78      GPG_ERR_AGENT                   agent error
111 79      GPG_ERR_INV_DATA                Invalid data
112 80      GPG_ERR_ASSUAN_SERVER_FAULT     Unspecific Assuan server fault
113 81      GPG_ERR_ASSUAN                  General Assuan error
114 82      GPG_ERR_INV_SESSION_KEY         Invalid session key
115 83      GPG_ERR_INV_SEXP                Invalid S-expression
116 84      GPG_ERR_UNSUPPORTED_ALGORITHM   Unsupported algorithm
117 85      GPG_ERR_NO_PIN_ENTRY            No pinentry
118 86      GPG_ERR_PIN_ENTRY               pinentry error
119 87      GPG_ERR_BAD_PIN                 Bad PIN
120 88      GPG_ERR_INV_NAME                Invalid name
121 89      GPG_ERR_BAD_DATA                Bad data
122 90      GPG_ERR_INV_PARAMETER           Invalid parameter
123 91      GPG_ERR_WRONG_CARD              Wrong card
124 92      GPG_ERR_NO_DIRMNGR              No dirmngr
125 93      GPG_ERR_DIRMNGR                 dirmngr error
126 94      GPG_ERR_CERT_REVOKED            Certificate revoked
127 95      GPG_ERR_NO_CRL_KNOWN            No CRL known
128 96      GPG_ERR_CRL_TOO_OLD             CRL too old
129 97      GPG_ERR_LINE_TOO_LONG           Line too long
130 98      GPG_ERR_NOT_TRUSTED             Not trusted
131 99      GPG_ERR_CANCELED                Operation cancelled
132 100     GPG_ERR_BAD_CA_CERT             Bad CA certificate
133 101     GPG_ERR_CERT_EXPIRED            Certificate expired
134 102     GPG_ERR_CERT_TOO_YOUNG          Certificate too young
135 103     GPG_ERR_UNSUPPORTED_CERT        Unsupported certificate
136 104     GPG_ERR_UNKNOWN_SEXP            Unknown S-expression
137 105     GPG_ERR_UNSUPPORTED_PROTECTION  Unsupported protection
138 106     GPG_ERR_CORRUPTED_PROTECTION    Corrupted protection
139 107     GPG_ERR_AMBIGUOUS_NAME          Ambiguous name
140 108     GPG_ERR_CARD                    Card error
141 109     GPG_ERR_CARD_RESET              Card reset required
142 110     GPG_ERR_CARD_REMOVED            Card removed
143 111     GPG_ERR_INV_CARD                Invalid card
144 112     GPG_ERR_CARD_NOT_PRESENT        Card not present
145 113     GPG_ERR_NO_PKCS15_APP           No PKCS15 application
146 114     GPG_ERR_NOT_CONFIRMED           Not confirmed
147 115     GPG_ERR_CONFIGURATION           Configuration error
148 116     GPG_ERR_NO_POLICY_MATCH         No policy match
149 117     GPG_ERR_INV_INDEX               Invalid index
150 118     GPG_ERR_INV_ID                  Invalid ID
151 119     GPG_ERR_NO_SCDAEMON             No SmartCard daemon
152 120     GPG_ERR_SCDAEMON                SmartCard daemon error
153 121     GPG_ERR_UNSUPPORTED_PROTOCOL    Unsupported protocol
154 122     GPG_ERR_BAD_PIN_METHOD          Bad PIN method
155 123     GPG_ERR_CARD_NOT_INITIALIZED    Card not initialized
156 124     GPG_ERR_UNSUPPORTED_OPERATION   Unsupported operation
157 125     GPG_ERR_WRONG_KEY_USAGE         Wrong key usage
158 126     GPG_ERR_NOTHING_FOUND           Nothing found
159 127     GPG_ERR_WRONG_BLOB_TYPE         Wrong blob type
160 128     GPG_ERR_MISSING_VALUE           Missing value
161 129     GPG_ERR_HARDWARE                Hardware problem
162 130     GPG_ERR_PIN_BLOCKED             PIN blocked     
163 131     GPG_ERR_USE_CONDITIONS          Conditions of use not satisfied 
164 132     GPG_ERR_PIN_NOT_SYNCED          PINs are not synced
165 133     GPG_ERR_INV_CRL                 Invalid CRL     
166 134     GPG_ERR_BAD_BER                 BER error
167 135     GPG_ERR_INV_BER                 Invalid BER
168 136     GPG_ERR_ELEMENT_NOT_FOUND       Element not found
169 137     GPG_ERR_IDENTIFIER_NOT_FOUND    Identifier not found
170 138     GPG_ERR_INV_TAG                 Invalid tag
171 139     GPG_ERR_INV_LENGTH              Invalid length
172 140     GPG_ERR_INV_KEYINFO             Invalid key info
173 141     GPG_ERR_UNEXPECTED_TAG          Unexpected tag
174 142     GPG_ERR_NOT_DER_ENCODED         Not DER encoded
175 143     GPG_ERR_NO_CMS_OBJ              No CMS object
176 144     GPG_ERR_INV_CMS_OBJ             Invalid CMS object
177 145     GPG_ERR_UNKNOWN_CMS_OBJ         Unknown CMS object
178 146     GPG_ERR_UNSUPPORTED_CMS_OBJ     Unsupported CMS object
179 147     GPG_ERR_UNSUPPORTED_ENCODING    Unsupported encoding
180 148     GPG_ERR_UNSUPPORTED_CMS_VERSION Unsupported CMS version
181 149     GPG_ERR_UNKNOWN_ALGORITHM       Unknown algorithm
182 150     GPG_ERR_INV_ENGINE              Invalid crypto engine
183 151     GPG_ERR_PUBKEY_NOT_TRUSTED      Public key not trusted
184 152     GPG_ERR_DECRYPT_FAILED          Decryption failed
185 153     GPG_ERR_KEY_EXPIRED             Key expired
186 154     GPG_ERR_SIG_EXPIRED             Signature expired
187 155     GPG_ERR_ENCODING_PROBLEM        Encoding problem
188 156     GPG_ERR_INV_STATE               Invalid state
189 157     GPG_ERR_DUP_VALUE               Duplicated value
190 158     GPG_ERR_MISSING_ACTION          Missing action
191 159     GPG_ERR_MODULE_NOT_FOUND        ASN.1 module not found
192 160     GPG_ERR_INV_OID_STRING          Invalid OID string
193 161     GPG_ERR_INV_TIME                Invalid time
194 162     GPG_ERR_INV_CRL_OBJ             Invalid CRL object
195 163     GPG_ERR_UNSUPPORTED_CRL_VERSION Unsupported CRL version
196 164     GPG_ERR_INV_CERT_OBJ            Invalid certificate object
197 165     GPG_ERR_UNKNOWN_NAME            Unknown name
198 166     GPG_ERR_LOCALE_PROBLEM          A locale function failed
199 167     GPG_ERR_NOT_LOCKED              Not locked
200 168     GPG_ERR_PROTOCOL_VIOLATION      Protocol violation
201 169     GPG_ERR_INV_MAC                 Invalid MAC
202 170     GPG_ERR_INV_REQUEST             Invalid request
203 171     GPG_ERR_UNKNOWN_EXTN            Unknown extension
204 172     GPG_ERR_UNKNOWN_CRIT_EXTN       Unknown critical extension
205 173     GPG_ERR_LOCKED                  Locked
206 174     GPG_ERR_UNKNOWN_OPTION          Unknown option
207 175     GPG_ERR_UNKNOWN_COMMAND         Unknown command
208 176     GPG_ERR_NOT_OPERATIONAL         Not operational
209 177     GPG_ERR_NO_PASSPHRASE           No passphrase given
210 178     GPG_ERR_NO_PIN                  No PIN given
211 # 179 to 198 are free to be used.
212
213 199     GPG_ERR_UNFINISHED              Operation not yet finished
214 200     GPG_ERR_BUFFER_TOO_SHORT        Buffer too short
215
216 # Error codes pertaining to S-expressions.
217
218 201     GPG_ERR_SEXP_INV_LEN_SPEC       Invalid length specifier in S-expression
219 202     GPG_ERR_SEXP_STRING_TOO_LONG    String too long in S-expression
220 203     GPG_ERR_SEXP_UNMATCHED_PAREN    Unmatched parentheses in S-expression
221 204     GPG_ERR_SEXP_NOT_CANONICAL      S-expression not canonical
222 205     GPG_ERR_SEXP_BAD_CHARACTER      Bad character in S-expression
223 206     GPG_ERR_SEXP_BAD_QUOTATION      Bad quotation in S-expression
224 207     GPG_ERR_SEXP_ZERO_PREFIX        Zero prefix in S-expression
225 208     GPG_ERR_SEXP_NESTED_DH          Nested display hints in S-expression
226 209     GPG_ERR_SEXP_UNMATCHED_DH       Unmatched display hints
227 210     GPG_ERR_SEXP_UNEXPECTED_PUNC    Unexpected reserved punctuation in S-expression
228 211     GPG_ERR_SEXP_BAD_HEX_CHAR       Bad hexadecimal character in S-expression
229 212     GPG_ERR_SEXP_ODD_HEX_NUMBERS    Odd hexadecimal numbers in S-expression
230 213     GPG_ERR_SEXP_BAD_OCT_CHAR       Bad octadecimal character in S-expression
231
232 # 214 to 254 are free to be used. 255 and 256 are RFU.
233
234 # Error codes pertaining to the Assuan IPC interface
235 257     GPG_ERR_ASS_GENERAL             General IPC error
236 258     GPG_ERR_ASS_ACCEPT_FAILED       IPC accept call failed
237 259     GPG_ERR_ASS_CONNECT_FAILED      IPC connect call failed
238 260     GPG_ERR_ASS_INV_RESPONSE        Invalid IPC response
239 261     GPG_ERR_ASS_INV_VALUE           Invalid value passed to IPC
240 262     GPG_ERR_ASS_INCOMPLETE_LINE     Incomplete line passed to IPC
241 263     GPG_ERR_ASS_LINE_TOO_LONG       Line passed to IPC too long
242 264     GPG_ERR_ASS_NESTED_COMMANDS     Nested IPC commands
243 265     GPG_ERR_ASS_NO_DATA_CB          No data callback in IPC
244 266     GPG_ERR_ASS_NO_INQUIRE_CB       No inquire callback in IPC
245 267     GPG_ERR_ASS_NOT_A_SERVER        Not an IPC server
246 268     GPG_ERR_ASS_NOT_A_CLIENT        Not an IPC client
247 269     GPG_ERR_ASS_SERVER_START        Problem starting IPC server
248 270     GPG_ERR_ASS_READ_ERROR          IPC read error
249 271     GPG_ERR_ASS_WRITE_ERROR         IPC write error
250 # reserved
251 273     GPG_ERR_ASS_TOO_MUCH_DATA       Too much data for IPC layer
252 274     GPG_ERR_ASS_UNEXPECTED_CMD      Unexpected IPC command
253 275     GPG_ERR_ASS_UNKNOWN_CMD         Unknown IPC command
254 276     GPG_ERR_ASS_SYNTAX              IPC syntax error
255 277     GPG_ERR_ASS_CANCELED            IPC call has been cancelled
256 278     GPG_ERR_ASS_NO_INPUT            No input source for IPC
257 279     GPG_ERR_ASS_NO_OUTPUT           No output source for IPC
258 280     GPG_ERR_ASS_PARAMETER           IPC parameter error 
259 281     GPG_ERR_ASS_UNKNOWN_INQUIRE     Unknown IPC inquire
260
261 # 282 to 299 are reserved for future assuan codes.
262
263 # 300 to 1023 are free to be used.
264
265 # For free use by non-GnuPG components.
266 1024    GPG_ERR_USER_1                  User defined error code 1
267 1025    GPG_ERR_USER_2                  User defined error code 2
268 1026    GPG_ERR_USER_3                  User defined error code 3
269 1027    GPG_ERR_USER_4                  User defined error code 4
270 1028    GPG_ERR_USER_5                  User defined error code 5
271 1029    GPG_ERR_USER_6                  User defined error code 6
272 1030    GPG_ERR_USER_7                  User defined error code 7
273 1031    GPG_ERR_USER_8                  User defined error code 8
274 1032    GPG_ERR_USER_9                  User defined error code 9
275 1033    GPG_ERR_USER_10                 User defined error code 10
276 1034    GPG_ERR_USER_11                 User defined error code 11
277 1035    GPG_ERR_USER_12                 User defined error code 12
278 1036    GPG_ERR_USER_13                 User defined error code 13
279 1037    GPG_ERR_USER_14                 User defined error code 14
280 1038    GPG_ERR_USER_15                 User defined error code 15
281 1039    GPG_ERR_USER_16                 User defined error code 16
282
283 # 1040 to 16380 are free to be used.
284
285 16381   GPG_ERR_MISSING_ERRNO           System error w/o errno
286 16382   GPG_ERR_UNKNOWN_ERRNO           Unknown system error
287 16383   GPG_ERR_EOF                     End of file
288
289 # 16384 - 32767 are reserved for future extensions.
290
291 # GPG_SYSTEM_ERROR | (141 to 32767) are to be used for system errors.
292
293         GPG_ERR_CODE_DIM                Unknown error code