~ubuntu-branches/ubuntu/wily/libgpg-error/wily

« back to all changes in this revision

Viewing changes to src/err-codes.h

  • Committer: Bazaar Package Importer
  • Author(s): Jose Carlos Garcia Sogo
  • Date: 2004-03-16 23:25:13 UTC
  • Revision ID: james.westby@ubuntu.com-20040316232513-u9dnue5r0i3egfkq
Tags: upstream-0.7
ImportĀ upstreamĀ versionĀ 0.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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 ("Assuan server fault") "\0"
 
109
  gettext_noop ("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") "\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 ("Buffer too short") "\0"
 
197
  gettext_noop ("Invalid length specifier in S-expression") "\0"
 
198
  gettext_noop ("String too long in S-expression") "\0"
 
199
  gettext_noop ("Unmatched parentheses in S-expression") "\0"
 
200
  gettext_noop ("S-expression not canonical") "\0"
 
201
  gettext_noop ("Bad character in S-expression") "\0"
 
202
  gettext_noop ("Bad quotation in S-expression") "\0"
 
203
  gettext_noop ("Zero prefix in S-expression") "\0"
 
204
  gettext_noop ("Nested display hints in S-expression") "\0"
 
205
  gettext_noop ("Unmatched display hints") "\0"
 
206
  gettext_noop ("Unexpected reserved punctuation in S-expression") "\0"
 
207
  gettext_noop ("Bad hexadecimal character in S-expression") "\0"
 
208
  gettext_noop ("Odd hexadecimal numbers in S-expression") "\0"
 
209
  gettext_noop ("Bad octadecimal character in S-expression") "\0"
 
210
  gettext_noop ("User defined error code 1") "\0"
 
211
  gettext_noop ("User defined error code 2") "\0"
 
212
  gettext_noop ("User defined error code 3") "\0"
 
213
  gettext_noop ("User defined error code 4") "\0"
 
214
  gettext_noop ("User defined error code 5") "\0"
 
215
  gettext_noop ("User defined error code 6") "\0"
 
216
  gettext_noop ("User defined error code 7") "\0"
 
217
  gettext_noop ("User defined error code 8") "\0"
 
218
  gettext_noop ("User defined error code 9") "\0"
 
219
  gettext_noop ("User defined error code 10") "\0"
 
220
  gettext_noop ("User defined error code 11") "\0"
 
221
  gettext_noop ("User defined error code 12") "\0"
 
222
  gettext_noop ("User defined error code 13") "\0"
 
223
  gettext_noop ("User defined error code 14") "\0"
 
224
  gettext_noop ("User defined error code 15") "\0"
 
225
  gettext_noop ("User defined error code 16") "\0"
 
226
  gettext_noop ("Unknown system error") "\0"
 
227
  gettext_noop ("End of file") "\0"
 
228
  gettext_noop ("Unknown error code");
 
229
 
 
230
static const int msgidx[] =
 
231
  {
 
232
    0,
 
233
    8,
 
234
    22,
 
235
    37,
 
236
    63,
 
237
    92,
 
238
    117,
 
239
    132,
 
240
    147,
 
241
    161,
 
242
    175,
 
243
    190,
 
244
    205,
 
245
    230,
 
246
    243,
 
247
    258,
 
248
    272,
 
249
    283,
 
250
    297,
 
251
    319,
 
252
    335,
 
253
    365,
 
254
    385,
 
255
    409,
 
256
    435,
 
257
    460,
 
258
    478,
 
259
    487,
 
260
    497,
 
261
    513,
 
262
    526,
 
263
    540,
 
264
    559,
 
265
    583,
 
266
    603,
 
267
    619,
 
268
    634,
 
269
    650,
 
270
    666,
 
271
    683,
 
272
    697,
 
273
    713,
 
274
    740,
 
275
    757,
 
276
    777,
 
277
    796,
 
278
    813,
 
279
    833,
 
280
    845,
 
281
    859,
 
282
    872,
 
283
    888,
 
284
    907,
 
285
    926,
 
286
    946,
 
287
    966,
 
288
    980,
 
289
    1002,
 
290
    1022,
 
291
    1030,
 
292
    1034,
 
293
    1048,
 
294
    1071,
 
295
    1079,
 
296
    1094,
 
297
    1107,
 
298
    1122,
 
299
    1151,
 
300
    1180,
 
301
    1203,
 
302
    1219,
 
303
    1235,
 
304
    1255,
 
305
    1268,
 
306
    1283,
 
307
    1300,
 
308
    1316,
 
309
    1333,
 
310
    1350,
 
311
    1362,
 
312
    1375,
 
313
    1395,
 
314
    1408,
 
315
    1428,
 
316
    1449,
 
317
    1471,
 
318
    1483,
 
319
    1498,
 
320
    1506,
 
321
    1519,
 
322
    1528,
 
323
    1546,
 
324
    1557,
 
325
    1568,
 
326
    1582,
 
327
    1602,
 
328
    1615,
 
329
    1627,
 
330
    1641,
 
331
    1653,
 
332
    1673,
 
333
    1692,
 
334
    1712,
 
335
    1734,
 
336
    1758,
 
337
    1779,
 
338
    1802,
 
339
    1823,
 
340
    1838,
 
341
    1849,
 
342
    1860,
 
343
    1873,
 
344
    1886,
 
345
    1903,
 
346
    1925,
 
347
    1939,
 
348
    1959,
 
349
    1975,
 
350
    1989,
 
351
    2000,
 
352
    2020,
 
353
    2043,
 
354
    2064,
 
355
    2079,
 
356
    2100,
 
357
    2122,
 
358
    2138,
 
359
    2152,
 
360
    2168,
 
361
    2182,
 
362
    2199,
 
363
    2211,
 
364
    2243,
 
365
    2263,
 
366
    2275,
 
367
    2285,
 
368
    2297,
 
369
    2315,
 
370
    2336,
 
371
    2348,
 
372
    2363,
 
373
    2380,
 
374
    2395,
 
375
    2411,
 
376
    2425,
 
377
    2444,
 
378
    2463,
 
379
    2486,
 
380
    2507,
 
381
    2531,
 
382
    2549,
 
383
    2571,
 
384
    2594,
 
385
    2612,
 
386
    2624,
 
387
    2642,
 
388
    2659,
 
389
    2673,
 
390
    2690,
 
391
    2705,
 
392
    2728,
 
393
    2747,
 
394
    2760,
 
395
    2779,
 
396
    2803,
 
397
    2830,
 
398
    2843,
 
399
    2868,
 
400
    2879,
 
401
    2896,
 
402
    2937,
 
403
    2969,
 
404
    3007,
 
405
    3034,
 
406
    3064,
 
407
    3094,
 
408
    3122,
 
409
    3159,
 
410
    3183,
 
411
    3231,
 
412
    3273,
 
413
    3313,
 
414
    3355,
 
415
    3381,
 
416
    3407,
 
417
    3433,
 
418
    3459,
 
419
    3485,
 
420
    3511,
 
421
    3537,
 
422
    3563,
 
423
    3589,
 
424
    3616,
 
425
    3643,
 
426
    3670,
 
427
    3697,
 
428
    3724,
 
429
    3751,
 
430
    3778,
 
431
    3799,
 
432
    3811
 
433
  };
 
434
 
 
435
#define msgidxof(code) (0 ? -1 \
 
436
  : ((code >= 0) && (code <= 167)) ? (code - 0) \
 
437
  : ((code >= 200) && (code <= 213)) ? (code - 32) \
 
438
  : ((code >= 1024) && (code <= 1039)) ? (code - 842) \
 
439
  : ((code >= 16382) && (code <= 16383)) ? (code - 16184) \
 
440
  : 16384 - 16184)