1 /*
2 * heimdal.c:
3 * This file is automatically generated; please do not edit it.
4 */
5
6 #include <stdlib.h>
7
8 #define N_(a) a
9
10 static const char * const text[] = {
11 N_("Kerberos successful"),
12 N_("Kerberos principal expired"),
13 N_("Kerberos service expired"),
14 N_("Kerberos auth expired"),
15 N_("Incorrect kerberos master key version"),
16 N_("Incorrect kerberos master key version"),
17 N_("Incorrect kerberos master key version"),
18 N_("Kerberos error: byte order unknown"),
19 N_("Kerberos principal unknown"),
20 N_("Kerberos principal not unique"),
21 N_("Kerberos principal has null key"),
22 N_("Reserved krb error (11)"),
23 N_("Reserved krb error (12)"),
24 N_("Reserved krb error (13)"),
25 N_("Reserved krb error (14)"),
26 N_("Reserved krb error (15)"),
27 N_("Reserved krb error (16)"),
28 N_("Reserved krb error (17)"),
29 N_("Reserved krb error (18)"),
30 N_("Reserved krb error (19)"),
31 N_("Generic error from Kerberos KDC"),
32 N_("Can't read Kerberos ticket file"),
33 N_("Can't find Kerberos ticket or TGT"),
34 N_("Reserved krb error (23)"),
35 N_("Reserved krb error (24)"),
36 N_("Reserved krb error (25)"),
37 N_("Kerberos TGT Expired"),
38 N_("Reserved krb error (27)"),
39 N_("Reserved krb error (28)"),
40 N_("Reserved krb error (29)"),
41 N_("Reserved krb error (30)"),
42 N_("Kerberos error: Can't decode authenticator"),
43 N_("Kerberos ticket expired"),
44 N_("Kerberos ticket not yet valid"),
45 N_("Kerberos error: Repeated request"),
46 N_("The kerberos ticket isn't for us"),
47 N_("Kerberos request inconsistent"),
48 N_("Kerberos error: delta_t too big"),
49 N_("Kerberos error: incorrect net address"),
50 N_("Kerberos protocol version mismatch"),
51 N_("Kerberos error: invalid msg type"),
52 N_("Kerberos error: message stream modified"),
53 N_("Kerberos error: message out of order"),
54 N_("Kerberos error: unauthorized request"),
55 N_("Reserved krb error (44)"),
56 N_("Reserved krb error (45)"),
57 N_("Reserved krb error (46)"),
58 N_("Reserved krb error (47)"),
59 N_("Reserved krb error (48)"),
60 N_("Reserved krb error (49)"),
61 N_("Reserved krb error (50)"),
62 N_("Kerberos error: current PW is null"),
63 N_("Kerberos error: Incorrect current password"),
64 N_("Kerberos protocol error"),
65 N_("Error returned by Kerberos KDC"),
66 N_("Null Kerberos ticket returned by KDC"),
67 N_("Kerberos error: Retry count exceeded"),
68 N_("Kerberos error: Can't send request"),
69 N_("Reserved krb error (58)"),
70 N_("Reserved krb error (59)"),
71 N_("Reserved krb error (60)"),
72 N_("Kerberos error: not all tickets returned"),
73 N_("Kerberos error: incorrect password"),
74 N_("Kerberos error: Protocol Error"),
75 N_("Reserved krb error (64)"),
76 N_("Reserved krb error (65)"),
77 N_("Reserved krb error (66)"),
78 N_("Reserved krb error (67)"),
79 N_("Reserved krb error (68)"),
80 N_("Reserved krb error (69)"),
81 N_("Other error"),
82 N_("Don't have Kerberos ticket-granting ticket"),
83 N_("Reserved krb error (72)"),
84 N_("Reserved krb error (73)"),
85 N_("Reserved krb error (74)"),
86 N_("Reserved krb error (75)"),
87 N_("No ticket file found"),
88 N_("Couldn't access ticket file"),
89 N_("Couldn't lock ticket file"),
90 N_("Bad ticket file format"),
91 N_("tf_init not called first"),
92 N_("Bad Kerberos name format"),
93 0
94 };
95
96 struct error_table {
97 char const * const * msgs;
98 long base;
99 int n_msgs;
100 };
101 struct et_list {
102 struct et_list *next;
103 const struct error_table * table;
104 };
105 extern struct et_list *_et_list;
106
107 const struct error_table et_krb_error_table = { text, 39525376L, 82 };
108
109 static struct et_list link = { 0, 0 };
110
111 void initialize_krb_error_table_r(struct et_list **list);
112 void initialize_krb_error_table(void);
113
initialize_krb_error_table(void)114 void initialize_krb_error_table(void) {
115 initialize_krb_error_table_r(&_et_list);
116 }
117
118 /* For Heimdal compatibility */
initialize_krb_error_table_r(struct et_list ** list)119 void initialize_krb_error_table_r(struct et_list **list)
120 {
121 struct et_list *et, **end;
122
123 for (end = list, et = *list; et; end = &et->next, et = et->next)
124 if (et->table->msgs == text)
125 return;
126 et = malloc(sizeof(struct et_list));
127 if (et == 0) {
128 if (!link.table)
129 et = &link;
130 else
131 return;
132 }
133 et->table = &et_krb_error_table;
134 et->next = 0;
135 *end = et;
136 }
137