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