• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * simple.c:
3  * This file is automatically generated; please do not edit it.
4  */
5 
6 #include <stdlib.h>
7 
8 static const char * const text[] = {
9 				"Can't read ticket file",
10 				"Can't find ticket or TGT",
11 				"TGT expired",
12 				"Can't decode authenticator",
13 				"Ticket expired",
14 				"Repeated request",
15 				"The ticket isn't for us",
16 				"Request is inconsistent",
17 				"Delta-T too big",
18 				"Incorrect net address",
19 				"Protocol version mismatch",
20 				"Invalid message type",
21 				"Message stream modified",
22 				"Message out of order",
23 				"Unauthorized request",
24 				"Current password is null",
25 				"Incorrect current password",
26 				"Protocol error",
27 				"Error returned by KDC",
28 				"Null ticket returned by KDC",
29 				"Retry count exceeded",
30 				"Can't send request",
31     0
32 };
33 
34 struct error_table {
35     char const * const * msgs;
36     long base;
37     int n_msgs;
38 };
39 struct et_list {
40     struct et_list *next;
41     const struct error_table * table;
42 };
43 extern struct et_list *_et_list;
44 
45 const struct error_table et_krb_error_table = { text, 39525376L, 22 };
46 
47 static struct et_list link = { 0, 0 };
48 
49 void initialize_krb_error_table_r(struct et_list **list);
50 void initialize_krb_error_table(void);
51 
initialize_krb_error_table(void)52 void initialize_krb_error_table(void) {
53     initialize_krb_error_table_r(&_et_list);
54 }
55 
56 /* For Heimdal compatibility */
initialize_krb_error_table_r(struct et_list ** list)57 void initialize_krb_error_table_r(struct et_list **list)
58 {
59     struct et_list *et, **end;
60 
61     for (end = list, et = *list; et; end = &et->next, et = et->next)
62         if (et->table->msgs == text)
63             return;
64     et = malloc(sizeof(struct et_list));
65     if (et == 0) {
66         if (!link.table)
67             et = &link;
68         else
69             return;
70     }
71     et->table = &et_krb_error_table;
72     et->next = 0;
73     *end = et;
74 }
75