summaryrefslogtreecommitdiffabout
path: root/pwmanager/libcrypt/error
Unidiff
Diffstat (limited to 'pwmanager/libcrypt/error') (more/less context) (ignore whitespace changes)
-rw-r--r--pwmanager/libcrypt/error/code-from-errno.c44
-rw-r--r--pwmanager/libcrypt/error/code-from-errno.h158
-rw-r--r--pwmanager/libcrypt/error/code-to-errno.c42
-rw-r--r--pwmanager/libcrypt/error/code-to-errno.h733
-rw-r--r--pwmanager/libcrypt/error/err-codes-sym.h446
-rw-r--r--pwmanager/libcrypt/error/err-codes.h446
-rw-r--r--pwmanager/libcrypt/error/err-sources-sym.h70
-rw-r--r--pwmanager/libcrypt/error/err-sources.h70
-rw-r--r--pwmanager/libcrypt/error/errnos-sym.h319
-rw-r--r--pwmanager/libcrypt/error/error.pro32
-rw-r--r--pwmanager/libcrypt/error/gettext.h69
-rw-r--r--pwmanager/libcrypt/error/strerror-sym.c56
-rw-r--r--pwmanager/libcrypt/error/strerror.c169
-rw-r--r--pwmanager/libcrypt/error/strsource-sym.c43
-rw-r--r--pwmanager/libcrypt/error/strsource.c37
15 files changed, 2734 insertions, 0 deletions
diff --git a/pwmanager/libcrypt/error/code-from-errno.c b/pwmanager/libcrypt/error/code-from-errno.c
new file mode 100644
index 0000000..d431ef1
--- a/dev/null
+++ b/pwmanager/libcrypt/error/code-from-errno.c
@@ -0,0 +1,44 @@
1/* code-from-errno.c - Mapping errnos to error codes.
2 Copyright (C) 2003 g10 Code GmbH
3
4 This file is part of libgpg-error.
5
6 libgpg-error is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Lesser General Public License
8 as published by the Free Software Foundation; either version 2.1 of
9 the License, or (at your option) any later version.
10
11 libgpg-error is distributed in the hope that it will be useful, but
12 WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Lesser General Public License for more details.
15
16 You should have received a copy of the GNU Lesser General Public
17 License along with libgpg-error; if not, write to the Free
18 Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
19 02111-1307, USA. */
20
21#if HAVE_CONFIG_H
22#include <config.h>
23#endif
24
25#include <gpg-error.h>
26
27#include "code-from-errno.h"
28
29/* Retrieve the error code for the system error ERR. This returns
30 GPG_ERR_UNKNOWN_ERRNO if the system error is not mapped (report
31 this). */
32gpg_err_code_t
33gpg_err_code_from_errno (int err)
34{
35 int idx = errno_to_idx (err);
36
37 if (!err)
38 return GPG_ERR_NO_ERROR;
39
40 if (idx < 0)
41 return GPG_ERR_UNKNOWN_ERRNO;
42
43 return GPG_ERR_SYSTEM_ERROR | err_code_from_index[idx];
44}
diff --git a/pwmanager/libcrypt/error/code-from-errno.h b/pwmanager/libcrypt/error/code-from-errno.h
new file mode 100644
index 0000000..8730ff0
--- a/dev/null
+++ b/pwmanager/libcrypt/error/code-from-errno.h
@@ -0,0 +1,158 @@
1/* Output of mkerrcodes2.awk. DO NOT EDIT. */
2
3/* errnos.h - List of system error values.
4 Copyright (C) 2004 g10 Code GmbH
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
22static const int err_code_from_index[] = {
23 GPG_ERR_EPERM,
24 GPG_ERR_ENOENT,
25 GPG_ERR_ESRCH,
26 GPG_ERR_EINTR,
27 GPG_ERR_EIO,
28 GPG_ERR_ENXIO,
29 GPG_ERR_E2BIG,
30 GPG_ERR_ENOEXEC,
31 GPG_ERR_EBADF,
32 GPG_ERR_ECHILD,
33 GPG_ERR_EAGAIN,
34 GPG_ERR_EWOULDBLOCK,
35 GPG_ERR_ENOMEM,
36 GPG_ERR_EACCES,
37 GPG_ERR_EFAULT,
38 GPG_ERR_ENOTBLK,
39 GPG_ERR_EBUSY,
40 GPG_ERR_EEXIST,
41 GPG_ERR_EXDEV,
42 GPG_ERR_ENODEV,
43 GPG_ERR_ENOTDIR,
44 GPG_ERR_EISDIR,
45 GPG_ERR_EINVAL,
46 GPG_ERR_ENFILE,
47 GPG_ERR_EMFILE,
48 GPG_ERR_ENOTTY,
49 GPG_ERR_ETXTBSY,
50 GPG_ERR_EFBIG,
51 GPG_ERR_ENOSPC,
52 GPG_ERR_ESPIPE,
53 GPG_ERR_EROFS,
54 GPG_ERR_EMLINK,
55 GPG_ERR_EPIPE,
56 GPG_ERR_EDOM,
57 GPG_ERR_ERANGE,
58 GPG_ERR_EDEADLK,
59 GPG_ERR_EDEADLOCK,
60 GPG_ERR_ENAMETOOLONG,
61 GPG_ERR_ENOLCK,
62 GPG_ERR_ENOSYS,
63 GPG_ERR_ENOTEMPTY,
64 GPG_ERR_ELOOP,
65 GPG_ERR_ENOMSG,
66 GPG_ERR_EIDRM,
67 GPG_ERR_ECHRNG,
68 GPG_ERR_EL2NSYNC,
69 GPG_ERR_EL3HLT,
70 GPG_ERR_EL3RST,
71 GPG_ERR_ELNRNG,
72 GPG_ERR_EUNATCH,
73 GPG_ERR_ENOCSI,
74 GPG_ERR_EL2HLT,
75 GPG_ERR_EBADE,
76 GPG_ERR_EBADR,
77 GPG_ERR_EXFULL,
78 GPG_ERR_ENOANO,
79 GPG_ERR_EBADRQC,
80 GPG_ERR_EBADSLT,
81 GPG_ERR_EBFONT,
82 GPG_ERR_ENOSTR,
83 GPG_ERR_ENODATA,
84 GPG_ERR_ETIME,
85 GPG_ERR_ENOSR,
86 GPG_ERR_ENONET,
87 GPG_ERR_ENOPKG,
88 GPG_ERR_EREMOTE,
89 GPG_ERR_ENOLINK,
90 GPG_ERR_EADV,
91 GPG_ERR_ESRMNT,
92 GPG_ERR_ECOMM,
93 GPG_ERR_EPROTO,
94 GPG_ERR_EMULTIHOP,
95 GPG_ERR_EDOTDOT,
96 GPG_ERR_EBADMSG,
97 GPG_ERR_EOVERFLOW,
98 GPG_ERR_ENOTUNIQ,
99 GPG_ERR_EBADFD,
100 GPG_ERR_EREMCHG,
101 GPG_ERR_ELIBACC,
102 GPG_ERR_ELIBBAD,
103 GPG_ERR_ELIBSCN,
104 GPG_ERR_ELIBMAX,
105 GPG_ERR_ELIBEXEC,
106 GPG_ERR_EILSEQ,
107 GPG_ERR_ERESTART,
108 GPG_ERR_ESTRPIPE,
109 GPG_ERR_EUSERS,
110 GPG_ERR_ENOTSOCK,
111 GPG_ERR_EDESTADDRREQ,
112 GPG_ERR_EMSGSIZE,
113 GPG_ERR_EPROTOTYPE,
114 GPG_ERR_ENOPROTOOPT,
115 GPG_ERR_EPROTONOSUPPORT,
116 GPG_ERR_ESOCKTNOSUPPORT,
117 GPG_ERR_ENOTSUP,
118 GPG_ERR_EOPNOTSUPP,
119 GPG_ERR_EPFNOSUPPORT,
120 GPG_ERR_EAFNOSUPPORT,
121 GPG_ERR_EADDRINUSE,
122 GPG_ERR_EADDRNOTAVAIL,
123 GPG_ERR_ENETDOWN,
124 GPG_ERR_ENETUNREACH,
125 GPG_ERR_ENETRESET,
126 GPG_ERR_ECONNABORTED,
127 GPG_ERR_ECONNRESET,
128 GPG_ERR_ENOBUFS,
129 GPG_ERR_EISCONN,
130 GPG_ERR_ENOTCONN,
131 GPG_ERR_ESHUTDOWN,
132 GPG_ERR_ETOOMANYREFS,
133 GPG_ERR_ETIMEDOUT,
134 GPG_ERR_ECONNREFUSED,
135 GPG_ERR_EHOSTDOWN,
136 GPG_ERR_EHOSTUNREACH,
137 GPG_ERR_EALREADY,
138 GPG_ERR_EINPROGRESS,
139 GPG_ERR_ESTALE,
140 GPG_ERR_EUCLEAN,
141 GPG_ERR_ENOTNAM,
142 GPG_ERR_ENAVAIL,
143 GPG_ERR_EISNAM,
144 GPG_ERR_EREMOTEIO,
145 GPG_ERR_EDQUOT,
146 GPG_ERR_ENOMEDIUM,
147 GPG_ERR_EMEDIUMTYPE,
148 GPG_ERR_ECANCELED,
149};
150
151#define errno_to_idx(code) (0 ? -1 \
152 : ((code >= 1) && (code <= 11)) ? (code - 1) \
153 : ((code >= 11) && (code <= 35)) ? (code - 0) \
154 : ((code >= 35) && (code <= 40)) ? (code - -1) \
155 : ((code >= 42) && (code <= 57)) ? (code - 0) \
156 : ((code >= 59) && (code <= 95)) ? (code - 1) \
157 : ((code >= 95) && (code <= 125)) ? (code - 0) \
158 : -1)
diff --git a/pwmanager/libcrypt/error/code-to-errno.c b/pwmanager/libcrypt/error/code-to-errno.c
new file mode 100644
index 0000000..5873aad
--- a/dev/null
+++ b/pwmanager/libcrypt/error/code-to-errno.c
@@ -0,0 +1,42 @@
1/* code-to-errno.c - Mapping error codes to errnos.
2 Copyright (C) 2003 g10 Code GmbH
3
4 This file is part of libgpg-error.
5
6 libgpg-error is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Lesser General Public License
8 as published by the Free Software Foundation; either version 2.1 of
9 the License, or (at your option) any later version.
10
11 libgpg-error is distributed in the hope that it will be useful, but
12 WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Lesser General Public License for more details.
15
16 You should have received a copy of the GNU Lesser General Public
17 License along with libgpg-error; if not, write to the Free
18 Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
19 02111-1307, USA. */
20
21#if HAVE_CONFIG_H
22#include <config.h>
23#endif
24
25#include <gpg-error.h>
26
27#include "code-to-errno.h"
28
29/* Retrieve the system error for the error code CODE. This returns 0
30 if CODE is not a system error code. */
31int
32gpg_err_code_to_errno (gpg_err_code_t code)
33{
34 if (!(code & GPG_ERR_SYSTEM_ERROR))
35 return 0;
36 code &= ~GPG_ERR_SYSTEM_ERROR;
37
38 if (code < sizeof (err_code_to_errno) / sizeof (err_code_to_errno[0]))
39 return err_code_to_errno[code];
40 else
41 return 0;
42}
diff --git a/pwmanager/libcrypt/error/code-to-errno.h b/pwmanager/libcrypt/error/code-to-errno.h
new file mode 100644
index 0000000..81bf4e9
--- a/dev/null
+++ b/pwmanager/libcrypt/error/code-to-errno.h
@@ -0,0 +1,733 @@
1/* Output of mkerrnos.awk. DO NOT EDIT. */
2
3/* errnos.h - List of system error values.
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
25#include <errno.h>
26
27static const int err_code_to_errno [] = {
28#ifdef E2BIG
29 E2BIG,
30#else
31 0,
32#endif
33#ifdef EACCES
34 EACCES,
35#else
36 0,
37#endif
38#ifdef EADDRINUSE
39 EADDRINUSE,
40#else
41 0,
42#endif
43#ifdef EADDRNOTAVAIL
44 EADDRNOTAVAIL,
45#else
46 0,
47#endif
48#ifdef EADV
49 EADV,
50#else
51 0,
52#endif
53#ifdef EAFNOSUPPORT
54 EAFNOSUPPORT,
55#else
56 0,
57#endif
58#ifdef EAGAIN
59 EAGAIN,
60#else
61 0,
62#endif
63#ifdef EALREADY
64 EALREADY,
65#else
66 0,
67#endif
68#ifdef EAUTH
69 EAUTH,
70#else
71 0,
72#endif
73#ifdef EBACKGROUND
74 EBACKGROUND,
75#else
76 0,
77#endif
78#ifdef EBADE
79 EBADE,
80#else
81 0,
82#endif
83#ifdef EBADF
84 EBADF,
85#else
86 0,
87#endif
88#ifdef EBADFD
89 EBADFD,
90#else
91 0,
92#endif
93#ifdef EBADMSG
94 EBADMSG,
95#else
96 0,
97#endif
98#ifdef EBADR
99 EBADR,
100#else
101 0,
102#endif
103#ifdef EBADRPC
104 EBADRPC,
105#else
106 0,
107#endif
108#ifdef EBADRQC
109 EBADRQC,
110#else
111 0,
112#endif
113#ifdef EBADSLT
114 EBADSLT,
115#else
116 0,
117#endif
118#ifdef EBFONT
119 EBFONT,
120#else
121 0,
122#endif
123#ifdef EBUSY
124 EBUSY,
125#else
126 0,
127#endif
128#ifdef ECANCELED
129 ECANCELED,
130#else
131 0,
132#endif
133#ifdef ECHILD
134 ECHILD,
135#else
136 0,
137#endif
138#ifdef ECHRNG
139 ECHRNG,
140#else
141 0,
142#endif
143#ifdef ECOMM
144 ECOMM,
145#else
146 0,
147#endif
148#ifdef ECONNABORTED
149 ECONNABORTED,
150#else
151 0,
152#endif
153#ifdef ECONNREFUSED
154 ECONNREFUSED,
155#else
156 0,
157#endif
158#ifdef ECONNRESET
159 ECONNRESET,
160#else
161 0,
162#endif
163#ifdef ED
164 ED,
165#else
166 0,
167#endif
168#ifdef EDEADLK
169 EDEADLK,
170#else
171 0,
172#endif
173#ifdef EDEADLOCK
174 EDEADLOCK,
175#else
176 0,
177#endif
178#ifdef EDESTADDRREQ
179 EDESTADDRREQ,
180#else
181 0,
182#endif
183#ifdef EDIED
184 EDIED,
185#else
186 0,
187#endif
188#ifdef EDOM
189 EDOM,
190#else
191 0,
192#endif
193#ifdef EDOTDOT
194 EDOTDOT,
195#else
196 0,
197#endif
198#ifdef EDQUOT
199 EDQUOT,
200#else
201 0,
202#endif
203#ifdef EEXIST
204 EEXIST,
205#else
206 0,
207#endif
208#ifdef EFAULT
209 EFAULT,
210#else
211 0,
212#endif
213#ifdef EFBIG
214 EFBIG,
215#else
216 0,
217#endif
218#ifdef EFTYPE
219 EFTYPE,
220#else
221 0,
222#endif
223#ifdef EGRATUITOUS
224 EGRATUITOUS,
225#else
226 0,
227#endif
228#ifdef EGREGIOUS
229 EGREGIOUS,
230#else
231 0,
232#endif
233#ifdef EHOSTDOWN
234 EHOSTDOWN,
235#else
236 0,
237#endif
238#ifdef EHOSTUNREACH
239 EHOSTUNREACH,
240#else
241 0,
242#endif
243#ifdef EIDRM
244 EIDRM,
245#else
246 0,
247#endif
248#ifdef EIEIO
249 EIEIO,
250#else
251 0,
252#endif
253#ifdef EILSEQ
254 EILSEQ,
255#else
256 0,
257#endif
258#ifdef EINPROGRESS
259 EINPROGRESS,
260#else
261 0,
262#endif
263#ifdef EINTR
264 EINTR,
265#else
266 0,
267#endif
268#ifdef EINVAL
269 EINVAL,
270#else
271 0,
272#endif
273#ifdef EIO
274 EIO,
275#else
276 0,
277#endif
278#ifdef EISCONN
279 EISCONN,
280#else
281 0,
282#endif
283#ifdef EISDIR
284 EISDIR,
285#else
286 0,
287#endif
288#ifdef EISNAM
289 EISNAM,
290#else
291 0,
292#endif
293#ifdef EL2HLT
294 EL2HLT,
295#else
296 0,
297#endif
298#ifdef EL2NSYNC
299 EL2NSYNC,
300#else
301 0,
302#endif
303#ifdef EL3HLT
304 EL3HLT,
305#else
306 0,
307#endif
308#ifdef EL3RST
309 EL3RST,
310#else
311 0,
312#endif
313#ifdef ELIBACC
314 ELIBACC,
315#else
316 0,
317#endif
318#ifdef ELIBBAD
319 ELIBBAD,
320#else
321 0,
322#endif
323#ifdef ELIBEXEC
324 ELIBEXEC,
325#else
326 0,
327#endif
328#ifdef ELIBMAX
329 ELIBMAX,
330#else
331 0,
332#endif
333#ifdef ELIBSCN
334 ELIBSCN,
335#else
336 0,
337#endif
338#ifdef ELNRNG
339 ELNRNG,
340#else
341 0,
342#endif
343#ifdef ELOOP
344 ELOOP,
345#else
346 0,
347#endif
348#ifdef EMEDIUMTYPE
349 EMEDIUMTYPE,
350#else
351 0,
352#endif
353#ifdef EMFILE
354 EMFILE,
355#else
356 0,
357#endif
358#ifdef EMLINK
359 EMLINK,
360#else
361 0,
362#endif
363#ifdef EMSGSIZE
364 EMSGSIZE,
365#else
366 0,
367#endif
368#ifdef EMULTIHOP
369 EMULTIHOP,
370#else
371 0,
372#endif
373#ifdef ENAMETOOLONG
374 ENAMETOOLONG,
375#else
376 0,
377#endif
378#ifdef ENAVAIL
379 ENAVAIL,
380#else
381 0,
382#endif
383#ifdef ENEEDAUTH
384 ENEEDAUTH,
385#else
386 0,
387#endif
388#ifdef ENETDOWN
389 ENETDOWN,
390#else
391 0,
392#endif
393#ifdef ENETRESET
394 ENETRESET,
395#else
396 0,
397#endif
398#ifdef ENETUNREACH
399 ENETUNREACH,
400#else
401 0,
402#endif
403#ifdef ENFILE
404 ENFILE,
405#else
406 0,
407#endif
408#ifdef ENOANO
409 ENOANO,
410#else
411 0,
412#endif
413#ifdef ENOBUFS
414 ENOBUFS,
415#else
416 0,
417#endif
418#ifdef ENOCSI
419 ENOCSI,
420#else
421 0,
422#endif
423#ifdef ENODATA
424 ENODATA,
425#else
426 0,
427#endif
428#ifdef ENODEV
429 ENODEV,
430#else
431 0,
432#endif
433#ifdef ENOENT
434 ENOENT,
435#else
436 0,
437#endif
438#ifdef ENOEXEC
439 ENOEXEC,
440#else
441 0,
442#endif
443#ifdef ENOLCK
444 ENOLCK,
445#else
446 0,
447#endif
448#ifdef ENOLINK
449 ENOLINK,
450#else
451 0,
452#endif
453#ifdef ENOMEDIUM
454 ENOMEDIUM,
455#else
456 0,
457#endif
458#ifdef ENOMEM
459 ENOMEM,
460#else
461 0,
462#endif
463#ifdef ENOMSG
464 ENOMSG,
465#else
466 0,
467#endif
468#ifdef ENONET
469 ENONET,
470#else
471 0,
472#endif
473#ifdef ENOPKG
474 ENOPKG,
475#else
476 0,
477#endif
478#ifdef ENOPROTOOPT
479 ENOPROTOOPT,
480#else
481 0,
482#endif
483#ifdef ENOSPC
484 ENOSPC,
485#else
486 0,
487#endif
488#ifdef ENOSR
489 ENOSR,
490#else
491 0,
492#endif
493#ifdef ENOSTR
494 ENOSTR,
495#else
496 0,
497#endif
498#ifdef ENOSYS
499 ENOSYS,
500#else
501 0,
502#endif
503#ifdef ENOTBLK
504 ENOTBLK,
505#else
506 0,
507#endif
508#ifdef ENOTCONN
509 ENOTCONN,
510#else
511 0,
512#endif
513#ifdef ENOTDIR
514 ENOTDIR,
515#else
516 0,
517#endif
518#ifdef ENOTEMPTY
519 ENOTEMPTY,
520#else
521 0,
522#endif
523#ifdef ENOTNAM
524 ENOTNAM,
525#else
526 0,
527#endif
528#ifdef ENOTSOCK
529 ENOTSOCK,
530#else
531 0,
532#endif
533#ifdef ENOTSUP
534 ENOTSUP,
535#else
536 0,
537#endif
538#ifdef ENOTTY
539 ENOTTY,
540#else
541 0,
542#endif
543#ifdef ENOTUNIQ
544 ENOTUNIQ,
545#else
546 0,
547#endif
548#ifdef ENXIO
549 ENXIO,
550#else
551 0,
552#endif
553#ifdef EOPNOTSUPP
554 EOPNOTSUPP,
555#else
556 0,
557#endif
558#ifdef EOVERFLOW
559 EOVERFLOW,
560#else
561 0,
562#endif
563#ifdef EPERM
564 EPERM,
565#else
566 0,
567#endif
568#ifdef EPFNOSUPPORT
569 EPFNOSUPPORT,
570#else
571 0,
572#endif
573#ifdef EPIPE
574 EPIPE,
575#else
576 0,
577#endif
578#ifdef EPROCLIM
579 EPROCLIM,
580#else
581 0,
582#endif
583#ifdef EPROCUNAVAIL
584 EPROCUNAVAIL,
585#else
586 0,
587#endif
588#ifdef EPROGMISMATCH
589 EPROGMISMATCH,
590#else
591 0,
592#endif
593#ifdef EPROGUNAVAIL
594 EPROGUNAVAIL,
595#else
596 0,
597#endif
598#ifdef EPROTO
599 EPROTO,
600#else
601 0,
602#endif
603#ifdef EPROTONOSUPPORT
604 EPROTONOSUPPORT,
605#else
606 0,
607#endif
608#ifdef EPROTOTYPE
609 EPROTOTYPE,
610#else
611 0,
612#endif
613#ifdef ERANGE
614 ERANGE,
615#else
616 0,
617#endif
618#ifdef EREMCHG
619 EREMCHG,
620#else
621 0,
622#endif
623#ifdef EREMOTE
624 EREMOTE,
625#else
626 0,
627#endif
628#ifdef EREMOTEIO
629 EREMOTEIO,
630#else
631 0,
632#endif
633#ifdef ERESTART
634 ERESTART,
635#else
636 0,
637#endif
638#ifdef EROFS
639 EROFS,
640#else
641 0,
642#endif
643#ifdef ERPCMISMATCH
644 ERPCMISMATCH,
645#else
646 0,
647#endif
648#ifdef ESHUTDOWN
649 ESHUTDOWN,
650#else
651 0,
652#endif
653#ifdef ESOCKTNOSUPPORT
654 ESOCKTNOSUPPORT,
655#else
656 0,
657#endif
658#ifdef ESPIPE
659 ESPIPE,
660#else
661 0,
662#endif
663#ifdef ESRCH
664 ESRCH,
665#else
666 0,
667#endif
668#ifdef ESRMNT
669 ESRMNT,
670#else
671 0,
672#endif
673#ifdef ESTALE
674 ESTALE,
675#else
676 0,
677#endif
678#ifdef ESTRPIPE
679 ESTRPIPE,
680#else
681 0,
682#endif
683#ifdef ETIME
684 ETIME,
685#else
686 0,
687#endif
688#ifdef ETIMEDOUT
689 ETIMEDOUT,
690#else
691 0,
692#endif
693#ifdef ETOOMANYREFS
694 ETOOMANYREFS,
695#else
696 0,
697#endif
698#ifdef ETXTBSY
699 ETXTBSY,
700#else
701 0,
702#endif
703#ifdef EUCLEAN
704 EUCLEAN,
705#else
706 0,
707#endif
708#ifdef EUNATCH
709 EUNATCH,
710#else
711 0,
712#endif
713#ifdef EUSERS
714 EUSERS,
715#else
716 0,
717#endif
718#ifdef EWOULDBLOCK
719 EWOULDBLOCK,
720#else
721 0,
722#endif
723#ifdef EXDEV
724 EXDEV,
725#else
726 0,
727#endif
728#ifdef EXFULL
729 EXFULL,
730#else
731 0,
732#endif
733};
diff --git a/pwmanager/libcrypt/error/err-codes-sym.h b/pwmanager/libcrypt/error/err-codes-sym.h
new file mode 100644
index 0000000..a9d7a75
--- a/dev/null
+++ b/pwmanager/libcrypt/error/err-codes-sym.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 "GPG_ERR_NO_ERROR" "\0"
29 "GPG_ERR_GENERAL" "\0"
30 "GPG_ERR_UNKNOWN_PACKET" "\0"
31 "GPG_ERR_UNKNOWN_VERSION" "\0"
32 "GPG_ERR_PUBKEY_ALGO" "\0"
33 "GPG_ERR_DIGEST_ALGO" "\0"
34 "GPG_ERR_BAD_PUBKEY" "\0"
35 "GPG_ERR_BAD_SECKEY" "\0"
36 "GPG_ERR_BAD_SIGNATURE" "\0"
37 "GPG_ERR_NO_PUBKEY" "\0"
38 "GPG_ERR_CHECKSUM" "\0"
39 "GPG_ERR_BAD_PASSPHRASE" "\0"
40 "GPG_ERR_CIPHER_ALGO" "\0"
41 "GPG_ERR_KEYRING_OPEN" "\0"
42 "GPG_ERR_INV_PACKET" "\0"
43 "GPG_ERR_INV_ARMOR" "\0"
44 "GPG_ERR_NO_USER_ID" "\0"
45 "GPG_ERR_NO_SECKEY" "\0"
46 "GPG_ERR_WRONG_SECKEY" "\0"
47 "GPG_ERR_BAD_KEY" "\0"
48 "GPG_ERR_COMPR_ALGO" "\0"
49 "GPG_ERR_NO_PRIME" "\0"
50 "GPG_ERR_NO_ENCODING_METHOD" "\0"
51 "GPG_ERR_NO_ENCRYPTION_SCHEME" "\0"
52 "GPG_ERR_NO_SIGNATURE_SCHEME" "\0"
53 "GPG_ERR_INV_ATTR" "\0"
54 "GPG_ERR_NO_VALUE" "\0"
55 "GPG_ERR_NOT_FOUND" "\0"
56 "GPG_ERR_VALUE_NOT_FOUND" "\0"
57 "GPG_ERR_SYNTAX" "\0"
58 "GPG_ERR_BAD_MPI" "\0"
59 "GPG_ERR_INV_PASSPHRASE" "\0"
60 "GPG_ERR_SIG_CLASS" "\0"
61 "GPG_ERR_RESOURCE_LIMIT" "\0"
62 "GPG_ERR_INV_KEYRING" "\0"
63 "GPG_ERR_TRUSTDB" "\0"
64 "GPG_ERR_BAD_CERT" "\0"
65 "GPG_ERR_INV_USER_ID" "\0"
66 "GPG_ERR_UNEXPECTED" "\0"
67 "GPG_ERR_TIME_CONFLICT" "\0"
68 "GPG_ERR_KEYSERVER" "\0"
69 "GPG_ERR_WRONG_PUBKEY_ALGO" "\0"
70 "GPG_ERR_TRIBUTE_TO_D_A" "\0"
71 "GPG_ERR_WEAK_KEY" "\0"
72 "GPG_ERR_INV_KEYLEN" "\0"
73 "GPG_ERR_INV_ARG" "\0"
74 "GPG_ERR_BAD_URI" "\0"
75 "GPG_ERR_INV_URI" "\0"
76 "GPG_ERR_NETWORK" "\0"
77 "GPG_ERR_UNKNOWN_HOST" "\0"
78 "GPG_ERR_SELFTEST_FAILED" "\0"
79 "GPG_ERR_NOT_ENCRYPTED" "\0"
80 "GPG_ERR_NOT_PROCESSED" "\0"
81 "GPG_ERR_UNUSABLE_PUBKEY" "\0"
82 "GPG_ERR_UNUSABLE_SECKEY" "\0"
83 "GPG_ERR_INV_VALUE" "\0"
84 "GPG_ERR_BAD_CERT_CHAIN" "\0"
85 "GPG_ERR_MISSING_CERT" "\0"
86 "GPG_ERR_NO_DATA" "\0"
87 "GPG_ERR_BUG" "\0"
88 "GPG_ERR_NOT_SUPPORTED" "\0"
89 "GPG_ERR_INV_OP" "\0"
90 "GPG_ERR_TIMEOUT" "\0"
91 "GPG_ERR_INTERNAL" "\0"
92 "GPG_ERR_EOF_GCRYPT" "\0"
93 "GPG_ERR_INV_OBJ" "\0"
94 "GPG_ERR_TOO_SHORT" "\0"
95 "GPG_ERR_TOO_LARGE" "\0"
96 "GPG_ERR_NO_OBJ" "\0"
97 "GPG_ERR_NOT_IMPLEMENTED" "\0"
98 "GPG_ERR_CONFLICT" "\0"
99 "GPG_ERR_INV_CIPHER_MODE" "\0"
100 "GPG_ERR_INV_FLAG" "\0"
101 "GPG_ERR_INV_HANDLE" "\0"
102 "GPG_ERR_TRUNCATED" "\0"
103 "GPG_ERR_INCOMPLETE_LINE" "\0"
104 "GPG_ERR_INV_RESPONSE" "\0"
105 "GPG_ERR_NO_AGENT" "\0"
106 "GPG_ERR_AGENT" "\0"
107 "GPG_ERR_INV_DATA" "\0"
108 "GPG_ERR_ASSUAN_SERVER_FAULT" "\0"
109 "GPG_ERR_ASSUAN" "\0"
110 "GPG_ERR_INV_SESSION_KEY" "\0"
111 "GPG_ERR_INV_SEXP" "\0"
112 "GPG_ERR_UNSUPPORTED_ALGORITHM" "\0"
113 "GPG_ERR_NO_PIN_ENTRY" "\0"
114 "GPG_ERR_PIN_ENTRY" "\0"
115 "GPG_ERR_BAD_PIN" "\0"
116 "GPG_ERR_INV_NAME" "\0"
117 "GPG_ERR_BAD_DATA" "\0"
118 "GPG_ERR_INV_PARAMETER" "\0"
119 "GPG_ERR_WRONG_CARD" "\0"
120 "GPG_ERR_NO_DIRMNGR" "\0"
121 "GPG_ERR_DIRMNGR" "\0"
122 "GPG_ERR_CERT_REVOKED" "\0"
123 "GPG_ERR_NO_CRL_KNOWN" "\0"
124 "GPG_ERR_CRL_TOO_OLD" "\0"
125 "GPG_ERR_LINE_TOO_LONG" "\0"
126 "GPG_ERR_NOT_TRUSTED" "\0"
127 "GPG_ERR_CANCELED" "\0"
128 "GPG_ERR_BAD_CA_CERT" "\0"
129 "GPG_ERR_CERT_EXPIRED" "\0"
130 "GPG_ERR_CERT_TOO_YOUNG" "\0"
131 "GPG_ERR_UNSUPPORTED_CERT" "\0"
132 "GPG_ERR_UNKNOWN_SEXP" "\0"
133 "GPG_ERR_UNSUPPORTED_PROTECTION" "\0"
134 "GPG_ERR_CORRUPTED_PROTECTION" "\0"
135 "GPG_ERR_AMBIGUOUS_NAME" "\0"
136 "GPG_ERR_CARD" "\0"
137 "GPG_ERR_CARD_RESET" "\0"
138 "GPG_ERR_CARD_REMOVED" "\0"
139 "GPG_ERR_INV_CARD" "\0"
140 "GPG_ERR_CARD_NOT_PRESENT" "\0"
141 "GPG_ERR_NO_PKCS15_APP" "\0"
142 "GPG_ERR_NOT_CONFIRMED" "\0"
143 "GPG_ERR_CONFIGURATION" "\0"
144 "GPG_ERR_NO_POLICY_MATCH" "\0"
145 "GPG_ERR_INV_INDEX" "\0"
146 "GPG_ERR_INV_ID" "\0"
147 "GPG_ERR_NO_SCDAEMON" "\0"
148 "GPG_ERR_SCDAEMON" "\0"
149 "GPG_ERR_UNSUPPORTED_PROTOCOL" "\0"
150 "GPG_ERR_BAD_PIN_METHOD" "\0"
151 "GPG_ERR_CARD_NOT_INITIALIZED" "\0"
152 "GPG_ERR_UNSUPPORTED_OPERATION" "\0"
153 "GPG_ERR_WRONG_KEY_USAGE" "\0"
154 "GPG_ERR_NOTHING_FOUND" "\0"
155 "GPG_ERR_WRONG_BLOB_TYPE" "\0"
156 "GPG_ERR_MISSING_VALUE" "\0"
157 "GPG_ERR_HARDWARE" "\0"
158 "GPG_ERR_PIN_BLOCKED" "\0"
159 "GPG_ERR_USE_CONDITIONS" "\0"
160 "GPG_ERR_PIN_NOT_SYNCED" "\0"
161 "GPG_ERR_INV_CRL" "\0"
162 "GPG_ERR_BAD_BER" "\0"
163 "GPG_ERR_INV_BER" "\0"
164 "GPG_ERR_ELEMENT_NOT_FOUND" "\0"
165 "GPG_ERR_IDENTIFIER_NOT_FOUND" "\0"
166 "GPG_ERR_INV_TAG" "\0"
167 "GPG_ERR_INV_LENGTH" "\0"
168 "GPG_ERR_INV_KEYINFO" "\0"
169 "GPG_ERR_UNEXPECTED_TAG" "\0"
170 "GPG_ERR_NOT_DER_ENCODED" "\0"
171 "GPG_ERR_NO_CMS_OBJ" "\0"
172 "GPG_ERR_INV_CMS_OBJ" "\0"
173 "GPG_ERR_UNKNOWN_CMS_OBJ" "\0"
174 "GPG_ERR_UNSUPPORTED_CMS_OBJ" "\0"
175 "GPG_ERR_UNSUPPORTED_ENCODING" "\0"
176 "GPG_ERR_UNSUPPORTED_CMS_VERSION" "\0"
177 "GPG_ERR_UNKNOWN_ALGORITHM" "\0"
178 "GPG_ERR_INV_ENGINE" "\0"
179 "GPG_ERR_PUBKEY_NOT_TRUSTED" "\0"
180 "GPG_ERR_DECRYPT_FAILED" "\0"
181 "GPG_ERR_KEY_EXPIRED" "\0"
182 "GPG_ERR_SIG_EXPIRED" "\0"
183 "GPG_ERR_ENCODING_PROBLEM" "\0"
184 "GPG_ERR_INV_STATE" "\0"
185 "GPG_ERR_DUP_VALUE" "\0"
186 "GPG_ERR_MISSING_ACTION" "\0"
187 "GPG_ERR_MODULE_NOT_FOUND" "\0"
188 "GPG_ERR_INV_OID_STRING" "\0"
189 "GPG_ERR_INV_TIME" "\0"
190 "GPG_ERR_INV_CRL_OBJ" "\0"
191 "GPG_ERR_UNSUPPORTED_CRL_VERSION" "\0"
192 "GPG_ERR_INV_CERT_OBJ" "\0"
193 "GPG_ERR_UNKNOWN_NAME" "\0"
194 "GPG_ERR_LOCALE_PROBLEM" "\0"
195 "GPG_ERR_NOT_LOCKED" "\0"
196 "GPG_ERR_PROTOCOL_VIOLATION" "\0"
197 "GPG_ERR_INV_MAC" "\0"
198 "GPG_ERR_INV_REQUEST" "\0"
199 "GPG_ERR_BUFFER_TOO_SHORT" "\0"
200 "GPG_ERR_SEXP_INV_LEN_SPEC" "\0"
201 "GPG_ERR_SEXP_STRING_TOO_LONG" "\0"
202 "GPG_ERR_SEXP_UNMATCHED_PAREN" "\0"
203 "GPG_ERR_SEXP_NOT_CANONICAL" "\0"
204 "GPG_ERR_SEXP_BAD_CHARACTER" "\0"
205 "GPG_ERR_SEXP_BAD_QUOTATION" "\0"
206 "GPG_ERR_SEXP_ZERO_PREFIX" "\0"
207 "GPG_ERR_SEXP_NESTED_DH" "\0"
208 "GPG_ERR_SEXP_UNMATCHED_DH" "\0"
209 "GPG_ERR_SEXP_UNEXPECTED_PUNC" "\0"
210 "GPG_ERR_SEXP_BAD_HEX_CHAR" "\0"
211 "GPG_ERR_SEXP_ODD_HEX_NUMBERS" "\0"
212 "GPG_ERR_SEXP_BAD_OCT_CHAR" "\0"
213 "GPG_ERR_USER_1" "\0"
214 "GPG_ERR_USER_2" "\0"
215 "GPG_ERR_USER_3" "\0"
216 "GPG_ERR_USER_4" "\0"
217 "GPG_ERR_USER_5" "\0"
218 "GPG_ERR_USER_6" "\0"
219 "GPG_ERR_USER_7" "\0"
220 "GPG_ERR_USER_8" "\0"
221 "GPG_ERR_USER_9" "\0"
222 "GPG_ERR_USER_10" "\0"
223 "GPG_ERR_USER_11" "\0"
224 "GPG_ERR_USER_12" "\0"
225 "GPG_ERR_USER_13" "\0"
226 "GPG_ERR_USER_14" "\0"
227 "GPG_ERR_USER_15" "\0"
228 "GPG_ERR_USER_16" "\0"
229 "GPG_ERR_UNKNOWN_ERRNO" "\0"
230 "GPG_ERR_EOF" "\0"
231 "GPG_ERR_CODE_DIM";
232
233static const int msgidx[] =
234 {
235 0,
236 17,
237 33,
238 56,
239 80,
240 100,
241 120,
242 139,
243 158,
244 180,
245 198,
246 215,
247 238,
248 258,
249 279,
250 298,
251 316,
252 335,
253 353,
254 374,
255 390,
256 409,
257 426,
258 453,
259 482,
260 510,
261 527,
262 544,
263 562,
264 586,
265 601,
266 617,
267 640,
268 658,
269 681,
270 701,
271 717,
272 734,
273 754,
274 773,
275 795,
276 813,
277 839,
278 862,
279 879,
280 898,
281 914,
282 930,
283 946,
284 962,
285 983,
286 1007,
287 1029,
288 1051,
289 1075,
290 1099,
291 1117,
292 1140,
293 1161,
294 1177,
295 1189,
296 1211,
297 1226,
298 1242,
299 1259,
300 1278,
301 1294,
302 1312,
303 1330,
304 1345,
305 1369,
306 1386,
307 1410,
308 1427,
309 1446,
310 1464,
311 1488,
312 1509,
313 1526,
314 1540,
315 1557,
316 1585,
317 1600,
318 1624,
319 1641,
320 1671,
321 1692,
322 1710,
323 1726,
324 1743,
325 1760,
326 1782,
327 1801,
328 1820,
329 1836,
330 1857,
331 1878,
332 1898,
333 1920,
334 1940,
335 1957,
336 1977,
337 1998,
338 2021,
339 2046,
340 2067,
341 2098,
342 2127,
343 2150,
344 2163,
345 2182,
346 2203,
347 2220,
348 2245,
349 2267,
350 2289,
351 2311,
352 2335,
353 2353,
354 2368,
355 2388,
356 2405,
357 2434,
358 2457,
359 2486,
360 2516,
361 2540,
362 2562,
363 2586,
364 2608,
365 2625,
366 2645,
367 2668,
368 2691,
369 2707,
370 2723,
371 2739,
372 2765,
373 2794,
374 2810,
375 2829,
376 2849,
377 2872,
378 2896,
379 2915,
380 2935,
381 2959,
382 2987,
383 3016,
384 3048,
385 3074,
386 3093,
387 3120,
388 3143,
389 3163,
390 3183,
391 3208,
392 3226,
393 3244,
394 3267,
395 3292,
396 3315,
397 3332,
398 3352,
399 3384,
400 3405,
401 3426,
402 3449,
403 3468,
404 3495,
405 3511,
406 3531,
407 3556,
408 3582,
409 3611,
410 3640,
411 3667,
412 3694,
413 3721,
414 3746,
415 3769,
416 3795,
417 3824,
418 3850,
419 3879,
420 3905,
421 3920,
422 3935,
423 3950,
424 3965,
425 3980,
426 3995,
427 4010,
428 4025,
429 4040,
430 4056,
431 4072,
432 4088,
433 4104,
434 4120,
435 4136,
436 4152,
437 4174,
438 4186
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)
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)
diff --git a/pwmanager/libcrypt/error/err-sources-sym.h b/pwmanager/libcrypt/error/err-sources-sym.h
new file mode 100644
index 0000000..8213f6e
--- a/dev/null
+++ b/pwmanager/libcrypt/error/err-sources-sym.h
@@ -0,0 +1,70 @@
1/* Output of mkstrtable.awk. DO NOT EDIT. */
2
3/* err-sources.h - List of error sources 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 "GPG_ERR_SOURCE_UNKNOWN" "\0"
29 "GPG_ERR_SOURCE_GCRYPT" "\0"
30 "GPG_ERR_SOURCE_GPG" "\0"
31 "GPG_ERR_SOURCE_GPGSM" "\0"
32 "GPG_ERR_SOURCE_GPGAGENT" "\0"
33 "GPG_ERR_SOURCE_PINENTRY" "\0"
34 "GPG_ERR_SOURCE_SCD" "\0"
35 "GPG_ERR_SOURCE_GPGME" "\0"
36 "GPG_ERR_SOURCE_KEYBOX" "\0"
37 "GPG_ERR_SOURCE_KSBA" "\0"
38 "GPG_ERR_SOURCE_DIRMNGR" "\0"
39 "GPG_ERR_SOURCE_GSTI" "\0"
40 "GPG_ERR_SOURCE_USER_1" "\0"
41 "GPG_ERR_SOURCE_USER_2" "\0"
42 "GPG_ERR_SOURCE_USER_3" "\0"
43 "GPG_ERR_SOURCE_USER_4" "\0"
44 "GPG_ERR_SOURCE_DIM";
45
46static const int msgidx[] =
47 {
48 0,
49 23,
50 45,
51 64,
52 85,
53 109,
54 133,
55 152,
56 173,
57 195,
58 215,
59 238,
60 258,
61 280,
62 302,
63 324,
64 346
65 };
66
67#define msgidxof(code) (0 ? -1 \
68 : ((code >= 0) && (code <= 11)) ? (code - 0) \
69 : ((code >= 32) && (code <= 35)) ? (code - 20) \
70 : 36 - 20)
diff --git a/pwmanager/libcrypt/error/err-sources.h b/pwmanager/libcrypt/error/err-sources.h
new file mode 100644
index 0000000..b41eaea
--- a/dev/null
+++ b/pwmanager/libcrypt/error/err-sources.h
@@ -0,0 +1,70 @@
1/* Output of mkstrtable.awk. DO NOT EDIT. */
2
3/* err-sources.h - List of error sources 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 ("Unspecified source") "\0"
29 gettext_noop ("gcrypt") "\0"
30 gettext_noop ("GnuPG") "\0"
31 gettext_noop ("GpgSM") "\0"
32 gettext_noop ("GPG Agent") "\0"
33 gettext_noop ("Pinentry") "\0"
34 gettext_noop ("SCD") "\0"
35 gettext_noop ("GPGME") "\0"
36 gettext_noop ("Keybox") "\0"
37 gettext_noop ("KSBA") "\0"
38 gettext_noop ("Dirmngr") "\0"
39 gettext_noop ("GSTI") "\0"
40 gettext_noop ("User defined source 1") "\0"
41 gettext_noop ("User defined source 2") "\0"
42 gettext_noop ("User defined source 3") "\0"
43 gettext_noop ("User defined source 4") "\0"
44 gettext_noop ("Unknown source");
45
46static const int msgidx[] =
47 {
48 0,
49 19,
50 26,
51 32,
52 38,
53 48,
54 57,
55 61,
56 67,
57 74,
58 79,
59 87,
60 92,
61 114,
62 136,
63 158,
64 180
65 };
66
67#define msgidxof(code) (0 ? -1 \
68 : ((code >= 0) && (code <= 11)) ? (code - 0) \
69 : ((code >= 32) && (code <= 35)) ? (code - 20) \
70 : 36 - 20)
diff --git a/pwmanager/libcrypt/error/errnos-sym.h b/pwmanager/libcrypt/error/errnos-sym.h
new file mode 100644
index 0000000..a07654e
--- a/dev/null
+++ b/pwmanager/libcrypt/error/errnos-sym.h
@@ -0,0 +1,319 @@
1/* Output of mkstrtable.awk. DO NOT EDIT. */
2
3/* errnos.h - List of system error values.
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
25/* The purpose of this complex string table is to produce
26 optimal code with a minimum of relocations. */
27
28static const char errnos_msgstr[] =
29 "GPG_ERR_E2BIG" "\0"
30 "GPG_ERR_EACCES" "\0"
31 "GPG_ERR_EADDRINUSE" "\0"
32 "GPG_ERR_EADDRNOTAVAIL" "\0"
33 "GPG_ERR_EADV" "\0"
34 "GPG_ERR_EAFNOSUPPORT" "\0"
35 "GPG_ERR_EAGAIN" "\0"
36 "GPG_ERR_EALREADY" "\0"
37 "GPG_ERR_EAUTH" "\0"
38 "GPG_ERR_EBACKGROUND" "\0"
39 "GPG_ERR_EBADE" "\0"
40 "GPG_ERR_EBADF" "\0"
41 "GPG_ERR_EBADFD" "\0"
42 "GPG_ERR_EBADMSG" "\0"
43 "GPG_ERR_EBADR" "\0"
44 "GPG_ERR_EBADRPC" "\0"
45 "GPG_ERR_EBADRQC" "\0"
46 "GPG_ERR_EBADSLT" "\0"
47 "GPG_ERR_EBFONT" "\0"
48 "GPG_ERR_EBUSY" "\0"
49 "GPG_ERR_ECANCELED" "\0"
50 "GPG_ERR_ECHILD" "\0"
51 "GPG_ERR_ECHRNG" "\0"
52 "GPG_ERR_ECOMM" "\0"
53 "GPG_ERR_ECONNABORTED" "\0"
54 "GPG_ERR_ECONNREFUSED" "\0"
55 "GPG_ERR_ECONNRESET" "\0"
56 "GPG_ERR_ED" "\0"
57 "GPG_ERR_EDEADLK" "\0"
58 "GPG_ERR_EDEADLOCK" "\0"
59 "GPG_ERR_EDESTADDRREQ" "\0"
60 "GPG_ERR_EDIED" "\0"
61 "GPG_ERR_EDOM" "\0"
62 "GPG_ERR_EDOTDOT" "\0"
63 "GPG_ERR_EDQUOT" "\0"
64 "GPG_ERR_EEXIST" "\0"
65 "GPG_ERR_EFAULT" "\0"
66 "GPG_ERR_EFBIG" "\0"
67 "GPG_ERR_EFTYPE" "\0"
68 "GPG_ERR_EGRATUITOUS" "\0"
69 "GPG_ERR_EGREGIOUS" "\0"
70 "GPG_ERR_EHOSTDOWN" "\0"
71 "GPG_ERR_EHOSTUNREACH" "\0"
72 "GPG_ERR_EIDRM" "\0"
73 "GPG_ERR_EIEIO" "\0"
74 "GPG_ERR_EILSEQ" "\0"
75 "GPG_ERR_EINPROGRESS" "\0"
76 "GPG_ERR_EINTR" "\0"
77 "GPG_ERR_EINVAL" "\0"
78 "GPG_ERR_EIO" "\0"
79 "GPG_ERR_EISCONN" "\0"
80 "GPG_ERR_EISDIR" "\0"
81 "GPG_ERR_EISNAM" "\0"
82 "GPG_ERR_EL2HLT" "\0"
83 "GPG_ERR_EL2NSYNC" "\0"
84 "GPG_ERR_EL3HLT" "\0"
85 "GPG_ERR_EL3RST" "\0"
86 "GPG_ERR_ELIBACC" "\0"
87 "GPG_ERR_ELIBBAD" "\0"
88 "GPG_ERR_ELIBEXEC" "\0"
89 "GPG_ERR_ELIBMAX" "\0"
90 "GPG_ERR_ELIBSCN" "\0"
91 "GPG_ERR_ELNRNG" "\0"
92 "GPG_ERR_ELOOP" "\0"
93 "GPG_ERR_EMEDIUMTYPE" "\0"
94 "GPG_ERR_EMFILE" "\0"
95 "GPG_ERR_EMLINK" "\0"
96 "GPG_ERR_EMSGSIZE" "\0"
97 "GPG_ERR_EMULTIHOP" "\0"
98 "GPG_ERR_ENAMETOOLONG" "\0"
99 "GPG_ERR_ENAVAIL" "\0"
100 "GPG_ERR_ENEEDAUTH" "\0"
101 "GPG_ERR_ENETDOWN" "\0"
102 "GPG_ERR_ENETRESET" "\0"
103 "GPG_ERR_ENETUNREACH" "\0"
104 "GPG_ERR_ENFILE" "\0"
105 "GPG_ERR_ENOANO" "\0"
106 "GPG_ERR_ENOBUFS" "\0"
107 "GPG_ERR_ENOCSI" "\0"
108 "GPG_ERR_ENODATA" "\0"
109 "GPG_ERR_ENODEV" "\0"
110 "GPG_ERR_ENOENT" "\0"
111 "GPG_ERR_ENOEXEC" "\0"
112 "GPG_ERR_ENOLCK" "\0"
113 "GPG_ERR_ENOLINK" "\0"
114 "GPG_ERR_ENOMEDIUM" "\0"
115 "GPG_ERR_ENOMEM" "\0"
116 "GPG_ERR_ENOMSG" "\0"
117 "GPG_ERR_ENONET" "\0"
118 "GPG_ERR_ENOPKG" "\0"
119 "GPG_ERR_ENOPROTOOPT" "\0"
120 "GPG_ERR_ENOSPC" "\0"
121 "GPG_ERR_ENOSR" "\0"
122 "GPG_ERR_ENOSTR" "\0"
123 "GPG_ERR_ENOSYS" "\0"
124 "GPG_ERR_ENOTBLK" "\0"
125 "GPG_ERR_ENOTCONN" "\0"
126 "GPG_ERR_ENOTDIR" "\0"
127 "GPG_ERR_ENOTEMPTY" "\0"
128 "GPG_ERR_ENOTNAM" "\0"
129 "GPG_ERR_ENOTSOCK" "\0"
130 "GPG_ERR_ENOTSUP" "\0"
131 "GPG_ERR_ENOTTY" "\0"
132 "GPG_ERR_ENOTUNIQ" "\0"
133 "GPG_ERR_ENXIO" "\0"
134 "GPG_ERR_EOPNOTSUPP" "\0"
135 "GPG_ERR_EOVERFLOW" "\0"
136 "GPG_ERR_EPERM" "\0"
137 "GPG_ERR_EPFNOSUPPORT" "\0"
138 "GPG_ERR_EPIPE" "\0"
139 "GPG_ERR_EPROCLIM" "\0"
140 "GPG_ERR_EPROCUNAVAIL" "\0"
141 "GPG_ERR_EPROGMISMATCH" "\0"
142 "GPG_ERR_EPROGUNAVAIL" "\0"
143 "GPG_ERR_EPROTO" "\0"
144 "GPG_ERR_EPROTONOSUPPORT" "\0"
145 "GPG_ERR_EPROTOTYPE" "\0"
146 "GPG_ERR_ERANGE" "\0"
147 "GPG_ERR_EREMCHG" "\0"
148 "GPG_ERR_EREMOTE" "\0"
149 "GPG_ERR_EREMOTEIO" "\0"
150 "GPG_ERR_ERESTART" "\0"
151 "GPG_ERR_EROFS" "\0"
152 "GPG_ERR_ERPCMISMATCH" "\0"
153 "GPG_ERR_ESHUTDOWN" "\0"
154 "GPG_ERR_ESOCKTNOSUPPORT" "\0"
155 "GPG_ERR_ESPIPE" "\0"
156 "GPG_ERR_ESRCH" "\0"
157 "GPG_ERR_ESRMNT" "\0"
158 "GPG_ERR_ESTALE" "\0"
159 "GPG_ERR_ESTRPIPE" "\0"
160 "GPG_ERR_ETIME" "\0"
161 "GPG_ERR_ETIMEDOUT" "\0"
162 "GPG_ERR_ETOOMANYREFS" "\0"
163 "GPG_ERR_ETXTBSY" "\0"
164 "GPG_ERR_EUCLEAN" "\0"
165 "GPG_ERR_EUNATCH" "\0"
166 "GPG_ERR_EUSERS" "\0"
167 "GPG_ERR_EWOULDBLOCK" "\0"
168 "GPG_ERR_EXDEV" "\0"
169 "GPG_ERR_GPG_ERR_EXFULL";
170
171static const int errnos_msgidx[] =
172 {
173 0,
174 14,
175 29,
176 48,
177 70,
178 83,
179 104,
180 119,
181 136,
182 150,
183 170,
184 184,
185 198,
186 213,
187 229,
188 243,
189 259,
190 275,
191 291,
192 306,
193 320,
194 338,
195 353,
196 368,
197 382,
198 403,
199 424,
200 443,
201 454,
202 470,
203 488,
204 509,
205 523,
206 536,
207 552,
208 567,
209 582,
210 597,
211 611,
212 626,
213 646,
214 664,
215 682,
216 703,
217 717,
218 731,
219 746,
220 766,
221 780,
222 795,
223 807,
224 823,
225 838,
226 853,
227 868,
228 885,
229 900,
230 915,
231 931,
232 947,
233 964,
234 980,
235 996,
236 1011,
237 1025,
238 1045,
239 1060,
240 1075,
241 1092,
242 1110,
243 1131,
244 1147,
245 1165,
246 1182,
247 1200,
248 1220,
249 1235,
250 1250,
251 1266,
252 1281,
253 1297,
254 1312,
255 1327,
256 1343,
257 1358,
258 1374,
259 1392,
260 1407,
261 1422,
262 1437,
263 1452,
264 1472,
265 1487,
266 1501,
267 1516,
268 1531,
269 1547,
270 1564,
271 1580,
272 1598,
273 1614,
274 1631,
275 1647,
276 1662,
277 1679,
278 1693,
279 1712,
280 1730,
281 1744,
282 1765,
283 1779,
284 1796,
285 1817,
286 1839,
287 1860,
288 1875,
289 1899,
290 1918,
291 1933,
292 1949,
293 1965,
294 1983,
295 2000,
296 2014,
297 2035,
298 2053,
299 2077,
300 2092,
301 2106,
302 2121,
303 2136,
304 2153,
305 2167,
306 2185,
307 2206,
308 2222,
309 2238,
310 2254,
311 2269,
312 2289,
313 2303,
314
315 };
316
317#define errnos_msgidxof(code) (0 ? -1 \
318 : ((code >= 0) && (code <= 140)) ? (code - 0) \
319 : -1)
diff --git a/pwmanager/libcrypt/error/error.pro b/pwmanager/libcrypt/error/error.pro
new file mode 100644
index 0000000..8c5f667
--- a/dev/null
+++ b/pwmanager/libcrypt/error/error.pro
@@ -0,0 +1,32 @@
1######################################################################
2# Automatically generated by qmake (1.07a) Tue Oct 19 15:09:32 2004
3######################################################################
4
5TEMPLATE = lib
6CONFIG += staticlib
7INCLUDEPATH += .
8OBJECTS_DIR = obj/$(PLATFORM)
9MOC_DIR = moc/$(PLATFORM)
10DESTDIR= ../$(PLATFORM)
11 TARGET = kpmicroerror
12# Input
13HEADERS += code-from-errno.h \
14 code-to-errno.h \
15 err-codes-sym.h \
16 err-codes.h \
17 err-sources-sym.h \
18 err-sources.h \
19 errnos-sym.h \
20 gettext.h
21
22SOURCES += code-from-errno.c \
23 code-to-errno.c \
24 strerror-sym.c \
25 strerror.c \
26 strsource-sym.c \
27 strsource.c
28
29 # gpg-error.c \
30 # gpg-error.h \
31 # mkerrcodes.h
32 # mkerrcodes.c \ \ No newline at end of file
diff --git a/pwmanager/libcrypt/error/gettext.h b/pwmanager/libcrypt/error/gettext.h
new file mode 100644
index 0000000..8b262f4
--- a/dev/null
+++ b/pwmanager/libcrypt/error/gettext.h
@@ -0,0 +1,69 @@
1/* Convenience header for conditional use of GNU <libintl.h>.
2 Copyright (C) 1995-1998, 2000-2002 Free Software Foundation, Inc.
3
4 This program is free software; you can redistribute it and/or modify it
5 under the terms of the GNU Library General Public License as published
6 by the Free Software Foundation; either version 2, or (at your option)
7 any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public
15 License along with this program; if not, write to the Free Software
16 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
17 USA. */
18
19#ifndef _LIBGETTEXT_H
20#define _LIBGETTEXT_H 1
21
22/* NLS can be disabled through the configure --disable-nls option. */
23#if ENABLE_NLS
24
25/* Get declarations of GNU message catalog functions. */
26# include <libintl.h>
27
28#else
29
30/* Solaris /usr/include/locale.h includes /usr/include/libintl.h, which
31 chokes if dcgettext is defined as a macro. So include it now, to make
32 later inclusions of <locale.h> a NOP. We don't include <libintl.h>
33 as well because people using "gettext.h" will not include <libintl.h>,
34 and also including <libintl.h> would fail on SunOS 4, whereas <locale.h>
35 is OK. */
36#if defined(__sun)
37# include <locale.h>
38#endif
39
40/* Disabled NLS.
41 The casts to 'const char *' serve the purpose of producing warnings
42 for invalid uses of the value returned from these functions.
43 On pre-ANSI systems without 'const', the config.h file is supposed to
44 contain "#define const". */
45# define gettext(Msgid) ((const char *) (Msgid))
46# define dgettext(Domainname, Msgid) ((const char *) (Msgid))
47# define dcgettext(Domainname, Msgid, Category) ((const char *) (Msgid))
48# define ngettext(Msgid1, Msgid2, N) \
49 ((N) == 1 ? (const char *) (Msgid1) : (const char *) (Msgid2))
50# define dngettext(Domainname, Msgid1, Msgid2, N) \
51 ((N) == 1 ? (const char *) (Msgid1) : (const char *) (Msgid2))
52# define dcngettext(Domainname, Msgid1, Msgid2, N, Category) \
53 ((N) == 1 ? (const char *) (Msgid1) : (const char *) (Msgid2))
54# define textdomain(Domainname) ((const char *) (Domainname))
55# define bindtextdomain(Domainname, Dirname) ((const char *) (Dirname))
56# define bind_textdomain_codeset(Domainname, Codeset) ((const char *) (Codeset))
57
58#endif
59
60/* A pseudo function call that serves as a marker for the automated
61 extraction of messages, but does not call gettext(). The run-time
62 translation is done at a different place in the code.
63 The argument, String, should be a literal string. Concatenated strings
64 and other string expressions won't work.
65 The macro's expansion is not parenthesized, so that it is suitable as
66 initializer for static 'char[]' or 'const char[]' variables. */
67#define gettext_noop(String) String
68
69#endif /* _LIBGETTEXT_H */
diff --git a/pwmanager/libcrypt/error/strerror-sym.c b/pwmanager/libcrypt/error/strerror-sym.c
new file mode 100644
index 0000000..3d79f40
--- a/dev/null
+++ b/pwmanager/libcrypt/error/strerror-sym.c
@@ -0,0 +1,56 @@
1/* strerror-sym.c - Describing an error code with its symbol name.
2 Copyright (C) 2003, 2004 g10 Code GmbH
3
4 This file is part of libgpg-error.
5
6 libgpg-error is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Lesser General Public License
8 as published by the Free Software Foundation; either version 2.1 of
9 the License, or (at your option) any later version.
10
11 libgpg-error is distributed in the hope that it will be useful, but
12 WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Lesser General Public License for more details.
15
16 You should have received a copy of the GNU Lesser General Public
17 License along with libgpg-error; if not, write to the Free
18 Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
19 02111-1307, USA. */
20
21#if HAVE_CONFIG_H
22#include <config.h>
23#endif
24
25#include <stddef.h>
26
27#include <gpg-error.h>
28
29#include "err-codes-sym.h"
30#include "errnos-sym.h"
31
32/* Return a pointer to a string containing the name of the symbol of
33 the error code in the error value ERR. Returns NULL if the error
34 code is not known. */
35const char *
36gpg_strerror_sym (gpg_error_t err)
37{
38 gpg_err_code_t code = gpg_err_code (err);
39
40 if (code & GPG_ERR_SYSTEM_ERROR)
41 {
42 int idx;
43
44 code &= ~GPG_ERR_SYSTEM_ERROR;
45 idx = errnos_msgidxof (code);
46 if (idx >= 0)
47 return errnos_msgstr + errnos_msgidx[idx];
48 else
49 return NULL;
50 }
51
52 if (msgidxof (code) == msgidxof (GPG_ERR_CODE_DIM))
53 return NULL;
54
55 return msgstr + msgidx[msgidxof (code)];
56}
diff --git a/pwmanager/libcrypt/error/strerror.c b/pwmanager/libcrypt/error/strerror.c
new file mode 100644
index 0000000..410c4ab
--- a/dev/null
+++ b/pwmanager/libcrypt/error/strerror.c
@@ -0,0 +1,169 @@
1/* strerror.c - Describing an error code.
2 Copyright (C) 2003 g10 Code GmbH
3
4 This file is part of libgpg-error.
5
6 libgpg-error is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Lesser General Public License
8 as published by the Free Software Foundation; either version 2.1 of
9 the License, or (at your option) any later version.
10
11 libgpg-error is distributed in the hope that it will be useful, but
12 WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Lesser General Public License for more details.
15
16 You should have received a copy of the GNU Lesser General Public
17 License along with libgpg-error; if not, write to the Free
18 Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
19 02111-1307, USA. */
20
21#if HAVE_CONFIG_H
22#include <config.h>
23#endif
24
25#include <stdlib.h>
26#include <stdio.h>
27#include <string.h>
28#include <errno.h>
29
30#include <gpg-error.h>
31
32#include "gettext.h"
33#include "err-codes.h"
34
35/* Return a pointer to a string containing a description of the error
36 code in the error value ERR. This function is not thread-safe. */
37const char *
38gpg_strerror (gpg_error_t err)
39{
40 gpg_err_code_t code = gpg_err_code (err);
41
42 if (code & GPG_ERR_SYSTEM_ERROR)
43 {
44 int no = gpg_err_code_to_errno (code);
45 if (no)
46 return strerror (no);
47 else
48 code = GPG_ERR_UNKNOWN_ERRNO;
49 }
50 return dgettext (PACKAGE, msgstr + msgidx[msgidxof (code)]);
51}
52
53
54#ifdef HAVE_STRERROR_R
55#ifdef STRERROR_R_CHAR_P
56/* The GNU C library and probably some other systems have this weird
57 variant of strerror_r. */
58
59/* Return a dynamically allocated string in *STR describing the system
60 error NO. If this call succeeds, return 1. If this call fails due
61 to a resource shortage, set *STR to NULL and return 1. If this
62 call fails because the error number is not valid, don't set *STR
63 and return 0. */
64int
65system_strerror_r (int no, char *buf, size_t buflen)
66{
67 char *errstr;
68
69 errstr = strerror_r (no, buf, buflen);
70 if (errstr != buf)
71 {
72 size_t errstr_len = strlen (errstr) + 1;
73 size_t cpy_len = errstr_len < buflen ? errstr_len : buflen;
74 memcpy (buf, errstr, cpy_len);
75
76 return cpy_len == errstr_len ? 0 : ERANGE;
77 }
78 else
79 {
80 /* We can not tell if the buffer was large enough, but we can
81 try to make a guess. */
82 if (strlen (buf) + 1 >= buflen)
83 return ERANGE;
84
85 return 0;
86 }
87}
88
89 #else/* STRERROR_R_CHAR_P */
90/* Now the POSIX version. */
91
92int
93system_strerror_r (int no, char *buf, size_t buflen)
94{
95 return strerror_r (no, buf, buflen);
96}
97
98 #endif/* STRERROR_R_CHAR_P */
99
100 #else/* HAVE_STRERROR_H */
101/* Without strerror_r(), we can still provide a non-thread-safe
102 version. Maybe we are even lucky and the system's strerror() is
103 already thread-safe. */
104
105int
106system_strerror_r (int no, char *buf, size_t buflen)
107{
108 char *errstr = strerror (no);
109
110 if (!errstr)
111 {
112 int saved_errno = errno;
113
114 if (saved_errno != EINVAL)
115 snprintf (buf, buflen, "strerror failed: %i\n", errno);
116 return saved_errno;
117 }
118 else
119 {
120 size_t errstr_len = strlen (errstr) + 1;
121 size_t cpy_len = errstr_len < buflen ? errstr_len : buflen;
122 memcpy (buf, errstr, cpy_len);
123 return cpy_len == errstr_len ? 0 : ERANGE;
124 }
125}
126#endif
127
128
129/* Return the error string for ERR in the user-supplied buffer BUF of
130 size BUFLEN. This function is, in contrast to gpg_strerror,
131 thread-safe if a thread-safe strerror_r() function is provided by
132 the system. If the function succeeds, 0 is returned and BUF
133 contains the string describing the error. If the buffer was not
134 large enough, ERANGE is returned and BUF contains as much of the
135 beginning of the error string as fits into the buffer. */
136int
137gpg_strerror_r (gpg_error_t err, char *buf, size_t buflen)
138{
139 gpg_err_code_t code = gpg_err_code (err);
140 const char *errstr;
141 size_t errstr_len;
142 size_t cpy_len;
143
144 if (code & GPG_ERR_SYSTEM_ERROR)
145 {
146 int no = gpg_err_code_to_errno (code);
147 if (no)
148 {
149 int system_err = system_strerror_r (no, buf, buflen);
150
151 if (system_err != EINVAL)
152 {
153 if (buflen)
154 buf[buflen - 1] = '\0';
155 return system_err;
156 }
157 }
158 code = GPG_ERR_UNKNOWN_ERRNO;
159 }
160
161 errstr = dgettext (PACKAGE, msgstr + msgidx[msgidxof (code)]);
162 errstr_len = strlen (errstr) + 1;
163 cpy_len = errstr_len < buflen ? errstr_len : buflen;
164 memcpy (buf, errstr, cpy_len);
165 if (buflen)
166 buf[buflen - 1] = '\0';
167
168 return cpy_len == errstr_len ? 0 : ERANGE;
169}
diff --git a/pwmanager/libcrypt/error/strsource-sym.c b/pwmanager/libcrypt/error/strsource-sym.c
new file mode 100644
index 0000000..a191310
--- a/dev/null
+++ b/pwmanager/libcrypt/error/strsource-sym.c
@@ -0,0 +1,43 @@
1/* strsource-sym.c - Describing an error source with its symbol name.
2 Copyright (C) 2003, 2004 g10 Code GmbH
3
4 This file is part of libgpg-error.
5
6 libgpg-error is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Lesser General Public License
8 as published by the Free Software Foundation; either version 2.1 of
9 the License, or (at your option) any later version.
10
11 libgpg-error is distributed in the hope that it will be useful, but
12 WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Lesser General Public License for more details.
15
16 You should have received a copy of the GNU Lesser General Public
17 License along with libgpg-error; if not, write to the Free
18 Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
19 02111-1307, USA. */
20
21#if HAVE_CONFIG_H
22#include <config.h>
23#endif
24
25#include <stddef.h>
26
27#include <gpg-error.h>
28
29#include "err-sources-sym.h"
30
31/* Return a pointer to a string containing the name of the symbol of
32 the error source in the error value ERR. Returns NULL if the error
33 code is not known. */
34const char *
35gpg_strsource_sym (gpg_error_t err)
36{
37 gpg_err_source_t source = gpg_err_source (err);
38
39 if (msgidxof (source) == msgidxof (GPG_ERR_SOURCE_DIM))
40 return NULL;
41
42 return msgstr + msgidx[msgidxof (source)];
43}
diff --git a/pwmanager/libcrypt/error/strsource.c b/pwmanager/libcrypt/error/strsource.c
new file mode 100644
index 0000000..66d783c
--- a/dev/null
+++ b/pwmanager/libcrypt/error/strsource.c
@@ -0,0 +1,37 @@
1/* strsource.c - Describing an error source.
2 Copyright (C) 2003 g10 Code GmbH
3
4 This file is part of libgpg-error.
5
6 libgpg-error is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Lesser General Public License
8 as published by the Free Software Foundation; either version 2.1 of
9 the License, or (at your option) any later version.
10
11 libgpg-error is distributed in the hope that it will be useful, but
12 WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Lesser General Public License for more details.
15
16 You should have received a copy of the GNU Lesser General Public
17 License along with libgpg-error; if not, write to the Free
18 Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
19 02111-1307, USA. */
20
21#if HAVE_CONFIG_H
22#include <config.h>
23#endif
24
25#include <gpg-error.h>
26
27#include "gettext.h"
28#include "err-sources.h"
29
30/* Return a pointer to a string containing a description of the error
31 source in the error value ERR. */
32const char *
33gpg_strsource (gpg_error_t err)
34{
35 gpg_err_source_t source = gpg_err_source (err);
36 return dgettext (PACKAGE, msgstr + msgidx[msgidxof (source)]);
37}