1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
|
/* Output of mkstrtable.awk. DO NOT EDIT. */
/* err-codes.h - List of error codes and their description.
Copyright (C) 2003, 2004 g10 Code GmbH
This file is part of libgpg-error.
libgpg-error is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public License
as published by the Free Software Foundation; either version 2.1 of
the License, or (at your option) any later version.
libgpg-error is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with libgpg-error; if not, write to the Free
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA. */
/* The purpose of this complex string table is to produce
optimal code with a minimum of relocations. */
static const char msgstr[] =
gettext_noop ("Success") "\0"
gettext_noop ("General error") "\0"
gettext_noop ("Unknown packet") "\0"
gettext_noop ("Unknown version in packet") "\0"
gettext_noop ("Invalid public key algorithm") "\0"
gettext_noop ("Invalid digest algorithm") "\0"
gettext_noop ("Bad public key") "\0"
gettext_noop ("Bad secret key") "\0"
gettext_noop ("Bad signature") "\0"
gettext_noop ("No public key") "\0"
gettext_noop ("Checksum error") "\0"
gettext_noop ("Bad passphrase") "\0"
gettext_noop ("Invalid cipher algorithm") "\0"
gettext_noop ("Keyring open") "\0"
gettext_noop ("Invalid packet") "\0"
gettext_noop ("Invalid armor") "\0"
gettext_noop ("No user ID") "\0"
gettext_noop ("No secret key") "\0"
gettext_noop ("Wrong secret key used") "\0"
gettext_noop ("Bad session key") "\0"
gettext_noop ("Unknown compression algorithm") "\0"
gettext_noop ("Number is not prime") "\0"
gettext_noop ("Invalid encoding method") "\0"
gettext_noop ("Invalid encryption scheme") "\0"
gettext_noop ("Invalid signature scheme") "\0"
gettext_noop ("Invalid attribute") "\0"
gettext_noop ("No value") "\0"
gettext_noop ("Not found") "\0"
gettext_noop ("Value not found") "\0"
gettext_noop ("Syntax error") "\0"
gettext_noop ("Bad MPI value") "\0"
gettext_noop ("Invalid passphrase") "\0"
gettext_noop ("Invalid signature class") "\0"
gettext_noop ("Resources exhausted") "\0"
gettext_noop ("Invalid keyring") "\0"
gettext_noop ("Trust DB error") "\0"
gettext_noop ("Bad certificate") "\0"
gettext_noop ("Invalid user ID") "\0"
gettext_noop ("Unexpected error") "\0"
gettext_noop ("Time conflict") "\0"
gettext_noop ("Keyserver error") "\0"
gettext_noop ("Wrong public key algorithm") "\0"
gettext_noop ("Tribute to D. A.") "\0"
gettext_noop ("Weak encryption key") "\0"
gettext_noop ("Invalid key length") "\0"
gettext_noop ("Invalid argument") "\0"
gettext_noop ("Syntax error in URI") "\0"
gettext_noop ("Invalid URI") "\0"
gettext_noop ("Network error") "\0"
gettext_noop ("Unknown host") "\0"
gettext_noop ("Selftest failed") "\0"
gettext_noop ("Data not encrypted") "\0"
gettext_noop ("Data not processed") "\0"
gettext_noop ("Unusable public key") "\0"
gettext_noop ("Unusable secret key") "\0"
gettext_noop ("Invalid value") "\0"
gettext_noop ("Bad certificate chain") "\0"
gettext_noop ("Missing certificate") "\0"
gettext_noop ("No data") "\0"
gettext_noop ("Bug") "\0"
gettext_noop ("Not supported") "\0"
gettext_noop ("Invalid operation code") "\0"
gettext_noop ("Timeout") "\0"
gettext_noop ("Internal error") "\0"
gettext_noop ("EOF (gcrypt)") "\0"
gettext_noop ("Invalid object") "\0"
gettext_noop ("Provided object is too short") "\0"
gettext_noop ("Provided object is too large") "\0"
gettext_noop ("Missing item in object") "\0"
gettext_noop ("Not implemented") "\0"
gettext_noop ("Conflicting use") "\0"
gettext_noop ("Invalid cipher mode") "\0"
gettext_noop ("Invalid flag") "\0"
gettext_noop ("Invalid handle") "\0"
gettext_noop ("Result truncated") "\0"
gettext_noop ("Incomplete line") "\0"
gettext_noop ("Invalid response") "\0"
gettext_noop ("No agent running") "\0"
gettext_noop ("Agent error") "\0"
gettext_noop ("Invalid data") "\0"
gettext_noop ("Unspecific Assuan server fault") "\0"
gettext_noop ("General Assuan error") "\0"
gettext_noop ("Invalid session key") "\0"
gettext_noop ("Invalid S-expression") "\0"
gettext_noop ("Unsupported algorithm") "\0"
gettext_noop ("No pinentry") "\0"
gettext_noop ("pinentry error") "\0"
gettext_noop ("Bad PIN") "\0"
gettext_noop ("Invalid name") "\0"
gettext_noop ("Bad data") "\0"
gettext_noop ("Invalid parameter") "\0"
gettext_noop ("Wrong card") "\0"
gettext_noop ("No dirmngr") "\0"
gettext_noop ("dirmngr error") "\0"
gettext_noop ("Certificate revoked") "\0"
gettext_noop ("No CRL known") "\0"
gettext_noop ("CRL too old") "\0"
gettext_noop ("Line too long") "\0"
gettext_noop ("Not trusted") "\0"
gettext_noop ("Operation cancelled") "\0"
gettext_noop ("Bad CA certificate") "\0"
gettext_noop ("Certificate expired") "\0"
gettext_noop ("Certificate too young") "\0"
gettext_noop ("Unsupported certificate") "\0"
gettext_noop ("Unknown S-expression") "\0"
gettext_noop ("Unsupported protection") "\0"
gettext_noop ("Corrupted protection") "\0"
gettext_noop ("Ambiguous name") "\0"
gettext_noop ("Card error") "\0"
gettext_noop ("Card reset required") "\0"
gettext_noop ("Card removed") "\0"
gettext_noop ("Invalid card") "\0"
gettext_noop ("Card not present") "\0"
gettext_noop ("No PKCS15 application") "\0"
gettext_noop ("Not confirmed") "\0"
gettext_noop ("Configuration error") "\0"
gettext_noop ("No policy match") "\0"
gettext_noop ("Invalid index") "\0"
gettext_noop ("Invalid ID") "\0"
gettext_noop ("No SmartCard daemon") "\0"
gettext_noop ("SmartCard daemon error") "\0"
gettext_noop ("Unsupported protocol") "\0"
gettext_noop ("Bad PIN method") "\0"
gettext_noop ("Card not initialized") "\0"
gettext_noop ("Unsupported operation") "\0"
gettext_noop ("Wrong key usage") "\0"
gettext_noop ("Nothing found") "\0"
gettext_noop ("Wrong blob type") "\0"
gettext_noop ("Missing value") "\0"
gettext_noop ("Hardware problem") "\0"
gettext_noop ("PIN blocked") "\0"
gettext_noop ("Conditions of use not satisfied") "\0"
gettext_noop ("PINs are not synced") "\0"
gettext_noop ("Invalid CRL") "\0"
gettext_noop ("BER error") "\0"
gettext_noop ("Invalid BER") "\0"
gettext_noop ("Element not found") "\0"
gettext_noop ("Identifier not found") "\0"
gettext_noop ("Invalid tag") "\0"
gettext_noop ("Invalid length") "\0"
gettext_noop ("Invalid key info") "\0"
gettext_noop ("Unexpected tag") "\0"
gettext_noop ("Not DER encoded") "\0"
gettext_noop ("No CMS object") "\0"
gettext_noop ("Invalid CMS object") "\0"
gettext_noop ("Unknown CMS object") "\0"
gettext_noop ("Unsupported CMS object") "\0"
gettext_noop ("Unsupported encoding") "\0"
gettext_noop ("Unsupported CMS version") "\0"
gettext_noop ("Unknown algorithm") "\0"
gettext_noop ("Invalid crypto engine") "\0"
gettext_noop ("Public key not trusted") "\0"
gettext_noop ("Decryption failed") "\0"
gettext_noop ("Key expired") "\0"
gettext_noop ("Signature expired") "\0"
gettext_noop ("Encoding problem") "\0"
gettext_noop ("Invalid state") "\0"
gettext_noop ("Duplicated value") "\0"
gettext_noop ("Missing action") "\0"
gettext_noop ("ASN.1 module not found") "\0"
gettext_noop ("Invalid OID string") "\0"
gettext_noop ("Invalid time") "\0"
gettext_noop ("Invalid CRL object") "\0"
gettext_noop ("Unsupported CRL version") "\0"
gettext_noop ("Invalid certificate object") "\0"
gettext_noop ("Unknown name") "\0"
gettext_noop ("A locale function failed") "\0"
gettext_noop ("Not locked") "\0"
gettext_noop ("Protocol violation") "\0"
gettext_noop ("Invalid MAC") "\0"
gettext_noop ("Invalid request") "\0"
gettext_noop ("Unknown extension") "\0"
gettext_noop ("Unknown critical extension") "\0"
gettext_noop ("Locked") "\0"
gettext_noop ("Unknown option") "\0"
gettext_noop ("Unknown command") "\0"
gettext_noop ("Not operational") "\0"
gettext_noop ("No passphrase given") "\0"
gettext_noop ("No PIN given") "\0"
gettext_noop ("Not enabled") "\0"
gettext_noop ("No crypto engine") "\0"
gettext_noop ("Missing key") "\0"
gettext_noop ("Too many objects") "\0"
gettext_noop ("Limit reached") "\0"
gettext_noop ("Not initialized") "\0"
gettext_noop ("Missing issuer certificate") "\0"
gettext_noop ("No keyserver available") "\0"
gettext_noop ("Invalid elliptic curve") "\0"
gettext_noop ("Unknown elliptic curve") "\0"
gettext_noop ("Duplicated key") "\0"
gettext_noop ("Ambiguous result") "\0"
gettext_noop ("No crypto context") "\0"
gettext_noop ("Wrong crypto context") "\0"
gettext_noop ("Bad crypto context") "\0"
gettext_noop ("Conflict in the crypto context") "\0"
gettext_noop ("Broken public key") "\0"
gettext_noop ("Broken secret key") "\0"
gettext_noop ("Invalid MAC algorithm") "\0"
gettext_noop ("Operation fully cancelled") "\0"
gettext_noop ("Operation not yet finished") "\0"
gettext_noop ("Buffer too short") "\0"
gettext_noop ("Invalid length specifier in S-expression") "\0"
gettext_noop ("String too long in S-expression") "\0"
gettext_noop ("Unmatched parentheses in S-expression") "\0"
gettext_noop ("S-expression not canonical") "\0"
gettext_noop ("Bad character in S-expression") "\0"
gettext_noop ("Bad quotation in S-expression") "\0"
gettext_noop ("Zero prefix in S-expression") "\0"
gettext_noop ("Nested display hints in S-expression") "\0"
gettext_noop ("Unmatched display hints") "\0"
gettext_noop ("Unexpected reserved punctuation in S-expression") "\0"
gettext_noop ("Bad hexadecimal character in S-expression") "\0"
gettext_noop ("Odd hexadecimal numbers in S-expression") "\0"
gettext_noop ("Bad octal character in S-expression") "\0"
gettext_noop ("Legacy key") "\0"
gettext_noop ("Request too short") "\0"
gettext_noop ("Request too long") "\0"
gettext_noop ("Object is in termination state") "\0"
gettext_noop ("No certificate chain") "\0"
gettext_noop ("Certificate is too large") "\0"
gettext_noop ("Invalid record") "\0"
gettext_noop ("The MAC does not verify") "\0"
gettext_noop ("Unexpected message") "\0"
gettext_noop ("Compression or decompression failed") "\0"
gettext_noop ("A counter would wrap") "\0"
gettext_noop ("Fatal alert message received") "\0"
gettext_noop ("No cipher algorithm") "\0"
gettext_noop ("Missing client certificate") "\0"
gettext_noop ("Close notification received") "\0"
gettext_noop ("Ticket expired") "\0"
gettext_noop ("Bad ticket") "\0"
gettext_noop ("Unknown identity") "\0"
gettext_noop ("Bad certificate message in handshake") "\0"
gettext_noop ("Bad certificate request message in handshake") "\0"
gettext_noop ("Bad certificate verify message in handshake") "\0"
gettext_noop ("Bad change cipher messsage in handshake") "\0"
gettext_noop ("Bad client hello message in handshake") "\0"
gettext_noop ("Bad server hello message in handshake") "\0"
gettext_noop ("Bad server hello done message in hanshake") "\0"
gettext_noop ("Bad finished message in handshake") "\0"
gettext_noop ("Bad server key exchange message in handshake") "\0"
gettext_noop ("Bad client key exchange message in handshake") "\0"
gettext_noop ("Bogus string") "\0"
gettext_noop ("Forbidden") "\0"
gettext_noop ("Key disabled") "\0"
gettext_noop ("Not possible with a card based key") "\0"
gettext_noop ("Invalid lock object") "\0"
gettext_noop ("General IPC error") "\0"
gettext_noop ("IPC accept call failed") "\0"
gettext_noop ("IPC connect call failed") "\0"
gettext_noop ("Invalid IPC response") "\0"
gettext_noop ("Invalid value passed to IPC") "\0"
gettext_noop ("Incomplete line passed to IPC") "\0"
gettext_noop ("Line passed to IPC too long") "\0"
gettext_noop ("Nested IPC commands") "\0"
gettext_noop ("No data callback in IPC") "\0"
gettext_noop ("No inquire callback in IPC") "\0"
gettext_noop ("Not an IPC server") "\0"
gettext_noop ("Not an IPC client") "\0"
gettext_noop ("Problem starting IPC server") "\0"
gettext_noop ("IPC read error") "\0"
gettext_noop ("IPC write error") "\0"
gettext_noop ("Too much data for IPC layer") "\0"
gettext_noop ("Unexpected IPC command") "\0"
gettext_noop ("Unknown IPC command") "\0"
gettext_noop ("IPC syntax error") "\0"
gettext_noop ("IPC call has been cancelled") "\0"
gettext_noop ("No input source for IPC") "\0"
gettext_noop ("No output source for IPC") "\0"
gettext_noop ("IPC parameter error") "\0"
gettext_noop ("Unknown IPC inquire") "\0"
gettext_noop ("User defined error code 1") "\0"
gettext_noop ("User defined error code 2") "\0"
gettext_noop ("User defined error code 3") "\0"
gettext_noop ("User defined error code 4") "\0"
gettext_noop ("User defined error code 5") "\0"
gettext_noop ("User defined error code 6") "\0"
gettext_noop ("User defined error code 7") "\0"
gettext_noop ("User defined error code 8") "\0"
gettext_noop ("User defined error code 9") "\0"
gettext_noop ("User defined error code 10") "\0"
gettext_noop ("User defined error code 11") "\0"
gettext_noop ("User defined error code 12") "\0"
gettext_noop ("User defined error code 13") "\0"
gettext_noop ("User defined error code 14") "\0"
gettext_noop ("User defined error code 15") "\0"
gettext_noop ("User defined error code 16") "\0"
gettext_noop ("System error w/o errno") "\0"
gettext_noop ("Unknown system error") "\0"
gettext_noop ("End of file") "\0"
gettext_noop ("Unknown error code");
static const int msgidx[] =
{
0,
8,
22,
37,
63,
92,
117,
132,
147,
161,
175,
190,
205,
230,
243,
258,
272,
283,
297,
319,
335,
365,
385,
409,
435,
460,
478,
487,
497,
513,
526,
540,
559,
583,
603,
619,
634,
650,
666,
683,
697,
713,
740,
757,
777,
796,
813,
833,
845,
859,
872,
888,
907,
926,
946,
966,
980,
1002,
1022,
1030,
1034,
1048,
1071,
1079,
1094,
1107,
1122,
1151,
1180,
1203,
1219,
1235,
1255,
1268,
1283,
1300,
1316,
1333,
1350,
1362,
1375,
1406,
1427,
1447,
1468,
1490,
1502,
1517,
1525,
1538,
1547,
1565,
1576,
1587,
1601,
1621,
1634,
1646,
1660,
1672,
1692,
1711,
1731,
1753,
1777,
1798,
1821,
1842,
1857,
1868,
1888,
1901,
1914,
1931,
1953,
1967,
1987,
2003,
2017,
2028,
2048,
2071,
2092,
2107,
2128,
2150,
2166,
2180,
2196,
2210,
2227,
2239,
2271,
2291,
2303,
2313,
2325,
2343,
2364,
2376,
2391,
2408,
2423,
2439,
2453,
2472,
2491,
2514,
2535,
2559,
2577,
2599,
2622,
2640,
2652,
2670,
2687,
2701,
2718,
2733,
2756,
2775,
2788,
2807,
2831,
2858,
2871,
2896,
2907,
2926,
2938,
2954,
2972,
2999,
3006,
3021,
3037,
3053,
3073,
3086,
3098,
3115,
3127,
3144,
3158,
3174,
3201,
3224,
3247,
3270,
3285,
3302,
3320,
3341,
3360,
3391,
3409,
3427,
3449,
3475,
3502,
3519,
3560,
3592,
3630,
3657,
3687,
3717,
3745,
3782,
3806,
3854,
3896,
3936,
3972,
3983,
4001,
4018,
4049,
4070,
4095,
4110,
4134,
4153,
4189,
4210,
4239,
4259,
4286,
4314,
4329,
4340,
4357,
4394,
4439,
4483,
4523,
4561,
4599,
4641,
4675,
4720,
4765,
4778,
4788,
4801,
4836,
4856,
4874,
4897,
4921,
4942,
4970,
5000,
5028,
5048,
5072,
5099,
5117,
5135,
5163,
5178,
5194,
5222,
5245,
5265,
5282,
5310,
5334,
5359,
5379,
5399,
5425,
5451,
5477,
5503,
5529,
5555,
5581,
5607,
5633,
5660,
5687,
5714,
5741,
5768,
5795,
5822,
5845,
5866,
5878
};
static GPG_ERR_INLINE int
msgidxof (int code)
{
return (0 ? 0
: ((code >= 0) && (code <= 213)) ? (code - 0)
: ((code >= 222) && (code <= 254)) ? (code - 8)
: ((code >= 257) && (code <= 271)) ? (code - 10)
: ((code >= 273) && (code <= 281)) ? (code - 11)
: ((code >= 1024) && (code <= 1039)) ? (code - 753)
: ((code >= 16381) && (code <= 16383)) ? (code - 16094)
: 16384 - 16094);
}
|