summaryrefslogtreecommitdiffabout
path: root/pwmanager/libcrypt/error/err-codes.h
Unidiff
Diffstat (limited to 'pwmanager/libcrypt/error/err-codes.h') (more/less context) (ignore whitespace changes)
-rw-r--r--pwmanager/libcrypt/error/err-codes.h446
1 files changed, 446 insertions, 0 deletions
diff --git a/pwmanager/libcrypt/error/err-codes.h b/pwmanager/libcrypt/error/err-codes.h
new file mode 100644
index 0000000..524b738
--- a/dev/null
+++ b/pwmanager/libcrypt/error/err-codes.h
@@ -0,0 +1,446 @@
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
27static 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 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 ("Buffer too short") "\0"
200 gettext_noop ("Invalid length specifier in S-expression") "\0"
201 gettext_noop ("String too long in S-expression") "\0"
202 gettext_noop ("Unmatched parentheses in S-expression") "\0"
203 gettext_noop ("S-expression not canonical") "\0"
204 gettext_noop ("Bad character in S-expression") "\0"
205 gettext_noop ("Bad quotation in S-expression") "\0"
206 gettext_noop ("Zero prefix in S-expression") "\0"
207 gettext_noop ("Nested display hints in S-expression") "\0"
208 gettext_noop ("Unmatched display hints") "\0"
209 gettext_noop ("Unexpected reserved punctuation in S-expression") "\0"
210 gettext_noop ("Bad hexadecimal character in S-expression") "\0"
211 gettext_noop ("Odd hexadecimal numbers in S-expression") "\0"
212 gettext_noop ("Bad octadecimal character in S-expression") "\0"
213 gettext_noop ("User defined error code 1") "\0"
214 gettext_noop ("User defined error code 2") "\0"
215 gettext_noop ("User defined error code 3") "\0"
216 gettext_noop ("User defined error code 4") "\0"
217 gettext_noop ("User defined error code 5") "\0"
218 gettext_noop ("User defined error code 6") "\0"
219 gettext_noop ("User defined error code 7") "\0"
220 gettext_noop ("User defined error code 8") "\0"
221 gettext_noop ("User defined error code 9") "\0"
222 gettext_noop ("User defined error code 10") "\0"
223 gettext_noop ("User defined error code 11") "\0"
224 gettext_noop ("User defined error code 12") "\0"
225 gettext_noop ("User defined error code 13") "\0"
226 gettext_noop ("User defined error code 14") "\0"
227 gettext_noop ("User defined error code 15") "\0"
228 gettext_noop ("User defined error code 16") "\0"
229 gettext_noop ("Unknown system error") "\0"
230 gettext_noop ("End of file") "\0"
231 gettext_noop ("Unknown error code");
232
233static const int msgidx[] =
234 {
235 0,
236 8,
237 22,
238 37,
239 63,
240 92,
241 117,
242 132,
243 147,
244 161,
245 175,
246 190,
247 205,
248 230,
249 243,
250 258,
251 272,
252 283,
253 297,
254 319,
255 335,
256 365,
257 385,
258 409,
259 435,
260 460,
261 478,
262 487,
263 497,
264 513,
265 526,
266 540,
267 559,
268 583,
269 603,
270 619,
271 634,
272 650,
273 666,
274 683,
275 697,
276 713,
277 740,
278 757,
279 777,
280 796,
281 813,
282 833,
283 845,
284 859,
285 872,
286 888,
287 907,
288 926,
289 946,
290 966,
291 980,
292 1002,
293 1022,
294 1030,
295 1034,
296 1048,
297 1071,
298 1079,
299 1094,
300 1107,
301 1122,
302 1151,
303 1180,
304 1203,
305 1219,
306 1235,
307 1255,
308 1268,
309 1283,
310 1300,
311 1316,
312 1333,
313 1350,
314 1362,
315 1375,
316 1395,
317 1408,
318 1428,
319 1449,
320 1471,
321 1483,
322 1498,
323 1506,
324 1519,
325 1528,
326 1546,
327 1557,
328 1568,
329 1582,
330 1602,
331 1615,
332 1627,
333 1641,
334 1653,
335 1673,
336 1692,
337 1712,
338 1734,
339 1758,
340 1779,
341 1802,
342 1823,
343 1838,
344 1849,
345 1869,
346 1882,
347 1895,
348 1912,
349 1934,
350 1948,
351 1968,
352 1984,
353 1998,
354 2009,
355 2029,
356 2052,
357 2073,
358 2088,
359 2109,
360 2131,
361 2147,
362 2161,
363 2177,
364 2191,
365 2208,
366 2220,
367 2252,
368 2272,
369 2284,
370 2294,
371 2306,
372 2324,
373 2345,
374 2357,
375 2372,
376 2389,
377 2404,
378 2420,
379 2434,
380 2453,
381 2472,
382 2495,
383 2516,
384 2540,
385 2558,
386 2580,
387 2603,
388 2621,
389 2633,
390 2651,
391 2668,
392 2682,
393 2699,
394 2714,
395 2737,
396 2756,
397 2769,
398 2788,
399 2812,
400 2839,
401 2852,
402 2877,
403 2888,
404 2907,
405 2919,
406 2935,
407 2952,
408 2993,
409 3025,
410 3063,
411 3090,
412 3120,
413 3150,
414 3178,
415 3215,
416 3239,
417 3287,
418 3329,
419 3369,
420 3411,
421 3437,
422 3463,
423 3489,
424 3515,
425 3541,
426 3567,
427 3593,
428 3619,
429 3645,
430 3672,
431 3699,
432 3726,
433 3753,
434 3780,
435 3807,
436 3834,
437 3855,
438 3867
439 };
440
441#define msgidxof(code) (0 ? -1 \
442 : ((code >= 0) && (code <= 170)) ? (code - 0) \
443 : ((code >= 200) && (code <= 213)) ? (code - 29) \
444 : ((code >= 1024) && (code <= 1039)) ? (code - 839) \
445 : ((code >= 16382) && (code <= 16383)) ? (code - 16181) \
446 : 16384 - 16181)