Tizen 2.1 base
[external/libgpg-error.git] / src / err-codes.h
1 /* Output of mkstrtable.awk.  DO NOT EDIT.  */
2
3 /* err-codes.h - List of error codes and their description.
4    Copyright (C) 2003, 2004 g10 Code GmbH
5
6    This file is part of libgpg-error.
7
8    libgpg-error is free software; you can redistribute it and/or
9    modify it under the terms of the GNU Lesser General Public License
10    as published by the Free Software Foundation; either version 2.1 of
11    the License, or (at your option) any later version.
12  
13    libgpg-error is distributed in the hope that it will be useful, but
14    WITHOUT ANY WARRANTY; without even the implied warranty of
15    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16    Lesser General Public License for more details.
17  
18    You should have received a copy of the GNU Lesser General Public
19    License along with libgpg-error; if not, write to the Free
20    Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
21    02111-1307, USA.  */
22
23
24 /* The purpose of this complex string table is to produce
25    optimal code with a minimum of relocations.  */
26
27 static const char msgstr[] = 
28   gettext_noop ("Success") "\0"
29   gettext_noop ("General error") "\0"
30   gettext_noop ("Unknown packet") "\0"
31   gettext_noop ("Unknown version in packet") "\0"
32   gettext_noop ("Invalid public key algorithm") "\0"
33   gettext_noop ("Invalid digest algorithm") "\0"
34   gettext_noop ("Bad public key") "\0"
35   gettext_noop ("Bad secret key") "\0"
36   gettext_noop ("Bad signature") "\0"
37   gettext_noop ("No public key") "\0"
38   gettext_noop ("Checksum error") "\0"
39   gettext_noop ("Bad passphrase") "\0"
40   gettext_noop ("Invalid cipher algorithm") "\0"
41   gettext_noop ("Keyring open") "\0"
42   gettext_noop ("Invalid packet") "\0"
43   gettext_noop ("Invalid armor") "\0"
44   gettext_noop ("No user ID") "\0"
45   gettext_noop ("No secret key") "\0"
46   gettext_noop ("Wrong secret key used") "\0"
47   gettext_noop ("Bad session key") "\0"
48   gettext_noop ("Unknown compression algorithm") "\0"
49   gettext_noop ("Number is not prime") "\0"
50   gettext_noop ("Invalid encoding method") "\0"
51   gettext_noop ("Invalid encryption scheme") "\0"
52   gettext_noop ("Invalid signature scheme") "\0"
53   gettext_noop ("Invalid attribute") "\0"
54   gettext_noop ("No value") "\0"
55   gettext_noop ("Not found") "\0"
56   gettext_noop ("Value not found") "\0"
57   gettext_noop ("Syntax error") "\0"
58   gettext_noop ("Bad MPI value") "\0"
59   gettext_noop ("Invalid passphrase") "\0"
60   gettext_noop ("Invalid signature class") "\0"
61   gettext_noop ("Resources exhausted") "\0"
62   gettext_noop ("Invalid keyring") "\0"
63   gettext_noop ("Trust DB error") "\0"
64   gettext_noop ("Bad certificate") "\0"
65   gettext_noop ("Invalid user ID") "\0"
66   gettext_noop ("Unexpected error") "\0"
67   gettext_noop ("Time conflict") "\0"
68   gettext_noop ("Keyserver error") "\0"
69   gettext_noop ("Wrong public key algorithm") "\0"
70   gettext_noop ("Tribute to D. A.") "\0"
71   gettext_noop ("Weak encryption key") "\0"
72   gettext_noop ("Invalid key length") "\0"
73   gettext_noop ("Invalid argument") "\0"
74   gettext_noop ("Syntax error in URI") "\0"
75   gettext_noop ("Invalid URI") "\0"
76   gettext_noop ("Network error") "\0"
77   gettext_noop ("Unknown host") "\0"
78   gettext_noop ("Selftest failed") "\0"
79   gettext_noop ("Data not encrypted") "\0"
80   gettext_noop ("Data not processed") "\0"
81   gettext_noop ("Unusable public key") "\0"
82   gettext_noop ("Unusable secret key") "\0"
83   gettext_noop ("Invalid value") "\0"
84   gettext_noop ("Bad certificate chain") "\0"
85   gettext_noop ("Missing certificate") "\0"
86   gettext_noop ("No data") "\0"
87   gettext_noop ("Bug") "\0"
88   gettext_noop ("Not supported") "\0"
89   gettext_noop ("Invalid operation code") "\0"
90   gettext_noop ("Timeout") "\0"
91   gettext_noop ("Internal error") "\0"
92   gettext_noop ("EOF (gcrypt)") "\0"
93   gettext_noop ("Invalid object") "\0"
94   gettext_noop ("Provided object is too short") "\0"
95   gettext_noop ("Provided object is too large") "\0"
96   gettext_noop ("Missing item in object") "\0"
97   gettext_noop ("Not implemented") "\0"
98   gettext_noop ("Conflicting use") "\0"
99   gettext_noop ("Invalid cipher mode") "\0"
100   gettext_noop ("Invalid flag") "\0"
101   gettext_noop ("Invalid handle") "\0"
102   gettext_noop ("Result truncated") "\0"
103   gettext_noop ("Incomplete line") "\0"
104   gettext_noop ("Invalid response") "\0"
105   gettext_noop ("No agent running") "\0"
106   gettext_noop ("agent error") "\0"
107   gettext_noop ("Invalid data") "\0"
108   gettext_noop ("Unspecific Assuan server fault") "\0"
109   gettext_noop ("General Assuan error") "\0"
110   gettext_noop ("Invalid session key") "\0"
111   gettext_noop ("Invalid S-expression") "\0"
112   gettext_noop ("Unsupported algorithm") "\0"
113   gettext_noop ("No pinentry") "\0"
114   gettext_noop ("pinentry error") "\0"
115   gettext_noop ("Bad PIN") "\0"
116   gettext_noop ("Invalid name") "\0"
117   gettext_noop ("Bad data") "\0"
118   gettext_noop ("Invalid parameter") "\0"
119   gettext_noop ("Wrong card") "\0"
120   gettext_noop ("No dirmngr") "\0"
121   gettext_noop ("dirmngr error") "\0"
122   gettext_noop ("Certificate revoked") "\0"
123   gettext_noop ("No CRL known") "\0"
124   gettext_noop ("CRL too old") "\0"
125   gettext_noop ("Line too long") "\0"
126   gettext_noop ("Not trusted") "\0"
127   gettext_noop ("Operation cancelled") "\0"
128   gettext_noop ("Bad CA certificate") "\0"
129   gettext_noop ("Certificate expired") "\0"
130   gettext_noop ("Certificate too young") "\0"
131   gettext_noop ("Unsupported certificate") "\0"
132   gettext_noop ("Unknown S-expression") "\0"
133   gettext_noop ("Unsupported protection") "\0"
134   gettext_noop ("Corrupted protection") "\0"
135   gettext_noop ("Ambiguous name") "\0"
136   gettext_noop ("Card error") "\0"
137   gettext_noop ("Card reset required") "\0"
138   gettext_noop ("Card removed") "\0"
139   gettext_noop ("Invalid card") "\0"
140   gettext_noop ("Card not present") "\0"
141   gettext_noop ("No PKCS15 application") "\0"
142   gettext_noop ("Not confirmed") "\0"
143   gettext_noop ("Configuration error") "\0"
144   gettext_noop ("No policy match") "\0"
145   gettext_noop ("Invalid index") "\0"
146   gettext_noop ("Invalid ID") "\0"
147   gettext_noop ("No SmartCard daemon") "\0"
148   gettext_noop ("SmartCard daemon error") "\0"
149   gettext_noop ("Unsupported protocol") "\0"
150   gettext_noop ("Bad PIN method") "\0"
151   gettext_noop ("Card not initialized") "\0"
152   gettext_noop ("Unsupported operation") "\0"
153   gettext_noop ("Wrong key usage") "\0"
154   gettext_noop ("Nothing found") "\0"
155   gettext_noop ("Wrong blob type") "\0"
156   gettext_noop ("Missing value") "\0"
157   gettext_noop ("Hardware problem") "\0"
158   gettext_noop ("PIN blocked") "\0"
159   gettext_noop ("Conditions of use not satisfied") "\0"
160   gettext_noop ("PINs are not synced") "\0"
161   gettext_noop ("Invalid CRL") "\0"
162   gettext_noop ("BER error") "\0"
163   gettext_noop ("Invalid BER") "\0"
164   gettext_noop ("Element not found") "\0"
165   gettext_noop ("Identifier not found") "\0"
166   gettext_noop ("Invalid tag") "\0"
167   gettext_noop ("Invalid length") "\0"
168   gettext_noop ("Invalid key info") "\0"
169   gettext_noop ("Unexpected tag") "\0"
170   gettext_noop ("Not DER encoded") "\0"
171   gettext_noop ("No CMS object") "\0"
172   gettext_noop ("Invalid CMS object") "\0"
173   gettext_noop ("Unknown CMS object") "\0"
174   gettext_noop ("Unsupported CMS object") "\0"
175   gettext_noop ("Unsupported encoding") "\0"
176   gettext_noop ("Unsupported CMS version") "\0"
177   gettext_noop ("Unknown algorithm") "\0"
178   gettext_noop ("Invalid crypto engine") "\0"
179   gettext_noop ("Public key not trusted") "\0"
180   gettext_noop ("Decryption failed") "\0"
181   gettext_noop ("Key expired") "\0"
182   gettext_noop ("Signature expired") "\0"
183   gettext_noop ("Encoding problem") "\0"
184   gettext_noop ("Invalid state") "\0"
185   gettext_noop ("Duplicated value") "\0"
186   gettext_noop ("Missing action") "\0"
187   gettext_noop ("ASN.1 module not found") "\0"
188   gettext_noop ("Invalid OID string") "\0"
189   gettext_noop ("Invalid time") "\0"
190   gettext_noop ("Invalid CRL object") "\0"
191   gettext_noop ("Unsupported CRL version") "\0"
192   gettext_noop ("Invalid certificate object") "\0"
193   gettext_noop ("Unknown name") "\0"
194   gettext_noop ("A locale function failed") "\0"
195   gettext_noop ("Not locked") "\0"
196   gettext_noop ("Protocol violation") "\0"
197   gettext_noop ("Invalid MAC") "\0"
198   gettext_noop ("Invalid request") "\0"
199   gettext_noop ("Unknown extension") "\0"
200   gettext_noop ("Unknown critical extension") "\0"
201   gettext_noop ("Locked") "\0"
202   gettext_noop ("Unknown option") "\0"
203   gettext_noop ("Unknown command") "\0"
204   gettext_noop ("Not operational") "\0"
205   gettext_noop ("No passphrase given") "\0"
206   gettext_noop ("No PIN given") "\0"
207   gettext_noop ("Operation not yet finished") "\0"
208   gettext_noop ("Buffer too short") "\0"
209   gettext_noop ("Invalid length specifier in S-expression") "\0"
210   gettext_noop ("String too long in S-expression") "\0"
211   gettext_noop ("Unmatched parentheses in S-expression") "\0"
212   gettext_noop ("S-expression not canonical") "\0"
213   gettext_noop ("Bad character in S-expression") "\0"
214   gettext_noop ("Bad quotation in S-expression") "\0"
215   gettext_noop ("Zero prefix in S-expression") "\0"
216   gettext_noop ("Nested display hints in S-expression") "\0"
217   gettext_noop ("Unmatched display hints") "\0"
218   gettext_noop ("Unexpected reserved punctuation in S-expression") "\0"
219   gettext_noop ("Bad hexadecimal character in S-expression") "\0"
220   gettext_noop ("Odd hexadecimal numbers in S-expression") "\0"
221   gettext_noop ("Bad octadecimal character in S-expression") "\0"
222   gettext_noop ("General IPC error") "\0"
223   gettext_noop ("IPC accept call failed") "\0"
224   gettext_noop ("IPC connect call failed") "\0"
225   gettext_noop ("Invalid IPC response") "\0"
226   gettext_noop ("Invalid value passed to IPC") "\0"
227   gettext_noop ("Incomplete line passed to IPC") "\0"
228   gettext_noop ("Line passed to IPC too long") "\0"
229   gettext_noop ("Nested IPC commands") "\0"
230   gettext_noop ("No data callback in IPC") "\0"
231   gettext_noop ("No inquire callback in IPC") "\0"
232   gettext_noop ("Not an IPC server") "\0"
233   gettext_noop ("Not an IPC client") "\0"
234   gettext_noop ("Problem starting IPC server") "\0"
235   gettext_noop ("IPC read error") "\0"
236   gettext_noop ("IPC write error") "\0"
237   gettext_noop ("Too much data for IPC layer") "\0"
238   gettext_noop ("Unexpected IPC command") "\0"
239   gettext_noop ("Unknown IPC command") "\0"
240   gettext_noop ("IPC syntax error") "\0"
241   gettext_noop ("IPC call has been cancelled") "\0"
242   gettext_noop ("No input source for IPC") "\0"
243   gettext_noop ("No output source for IPC") "\0"
244   gettext_noop ("IPC parameter error") "\0"
245   gettext_noop ("Unknown IPC inquire") "\0"
246   gettext_noop ("User defined error code 1") "\0"
247   gettext_noop ("User defined error code 2") "\0"
248   gettext_noop ("User defined error code 3") "\0"
249   gettext_noop ("User defined error code 4") "\0"
250   gettext_noop ("User defined error code 5") "\0"
251   gettext_noop ("User defined error code 6") "\0"
252   gettext_noop ("User defined error code 7") "\0"
253   gettext_noop ("User defined error code 8") "\0"
254   gettext_noop ("User defined error code 9") "\0"
255   gettext_noop ("User defined error code 10") "\0"
256   gettext_noop ("User defined error code 11") "\0"
257   gettext_noop ("User defined error code 12") "\0"
258   gettext_noop ("User defined error code 13") "\0"
259   gettext_noop ("User defined error code 14") "\0"
260   gettext_noop ("User defined error code 15") "\0"
261   gettext_noop ("User defined error code 16") "\0"
262   gettext_noop ("System error w/o errno") "\0"
263   gettext_noop ("Unknown system error") "\0"
264   gettext_noop ("End of file") "\0"
265   gettext_noop ("Unknown error code");
266
267 static const int msgidx[] =
268   {
269     0,
270     8,
271     22,
272     37,
273     63,
274     92,
275     117,
276     132,
277     147,
278     161,
279     175,
280     190,
281     205,
282     230,
283     243,
284     258,
285     272,
286     283,
287     297,
288     319,
289     335,
290     365,
291     385,
292     409,
293     435,
294     460,
295     478,
296     487,
297     497,
298     513,
299     526,
300     540,
301     559,
302     583,
303     603,
304     619,
305     634,
306     650,
307     666,
308     683,
309     697,
310     713,
311     740,
312     757,
313     777,
314     796,
315     813,
316     833,
317     845,
318     859,
319     872,
320     888,
321     907,
322     926,
323     946,
324     966,
325     980,
326     1002,
327     1022,
328     1030,
329     1034,
330     1048,
331     1071,
332     1079,
333     1094,
334     1107,
335     1122,
336     1151,
337     1180,
338     1203,
339     1219,
340     1235,
341     1255,
342     1268,
343     1283,
344     1300,
345     1316,
346     1333,
347     1350,
348     1362,
349     1375,
350     1406,
351     1427,
352     1447,
353     1468,
354     1490,
355     1502,
356     1517,
357     1525,
358     1538,
359     1547,
360     1565,
361     1576,
362     1587,
363     1601,
364     1621,
365     1634,
366     1646,
367     1660,
368     1672,
369     1692,
370     1711,
371     1731,
372     1753,
373     1777,
374     1798,
375     1821,
376     1842,
377     1857,
378     1868,
379     1888,
380     1901,
381     1914,
382     1931,
383     1953,
384     1967,
385     1987,
386     2003,
387     2017,
388     2028,
389     2048,
390     2071,
391     2092,
392     2107,
393     2128,
394     2150,
395     2166,
396     2180,
397     2196,
398     2210,
399     2227,
400     2239,
401     2271,
402     2291,
403     2303,
404     2313,
405     2325,
406     2343,
407     2364,
408     2376,
409     2391,
410     2408,
411     2423,
412     2439,
413     2453,
414     2472,
415     2491,
416     2514,
417     2535,
418     2559,
419     2577,
420     2599,
421     2622,
422     2640,
423     2652,
424     2670,
425     2687,
426     2701,
427     2718,
428     2733,
429     2756,
430     2775,
431     2788,
432     2807,
433     2831,
434     2858,
435     2871,
436     2896,
437     2907,
438     2926,
439     2938,
440     2954,
441     2972,
442     2999,
443     3006,
444     3021,
445     3037,
446     3053,
447     3073,
448     3086,
449     3113,
450     3130,
451     3171,
452     3203,
453     3241,
454     3268,
455     3298,
456     3328,
457     3356,
458     3393,
459     3417,
460     3465,
461     3507,
462     3547,
463     3589,
464     3607,
465     3630,
466     3654,
467     3675,
468     3703,
469     3733,
470     3761,
471     3781,
472     3805,
473     3832,
474     3850,
475     3868,
476     3896,
477     3911,
478     3927,
479     3955,
480     3978,
481     3998,
482     4015,
483     4043,
484     4067,
485     4092,
486     4112,
487     4132,
488     4158,
489     4184,
490     4210,
491     4236,
492     4262,
493     4288,
494     4314,
495     4340,
496     4366,
497     4393,
498     4420,
499     4447,
500     4474,
501     4501,
502     4528,
503     4555,
504     4578,
505     4599,
506     4611
507   };
508
509 static inline int
510 msgidxof (int code)
511 {
512   return (0 ? 0
513   : ((code >= 0) && (code <= 178)) ? (code - 0)
514   : ((code >= 199) && (code <= 213)) ? (code - 20)
515   : ((code >= 257) && (code <= 271)) ? (code - 63)
516   : ((code >= 273) && (code <= 281)) ? (code - 64)
517   : ((code >= 1024) && (code <= 1039)) ? (code - 806)
518   : ((code >= 16381) && (code <= 16383)) ? (code - 16147)
519   : 16384 - 16147);
520 }