• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * heimdal2.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 	"$Id: kadm_err.et,v 1.5 1998/01/16 23:11:27 joda Exp $",
10 	"Cannot fetch local realm",
11 	"Unable to fetch credentials",
12 	"Bad key supplied",
13 	"Can't encrypt data",
14 	"Cannot encode/decode authentication info",
15 	"Principal attemping change is in wrong realm",
16 	"Packet is too large",
17 	"Version number is incorrect",
18 	"Checksum does not match",
19 	"Unsealing private data failed",
20 	"Unsupported operation",
21 	"Could not find administrating host",
22 	"Administrating host name is unknown",
23 	"Could not find service name in services database",
24 	"Could not create socket",
25 	"Could not connect to server",
26 	"Could not fetch local socket address",
27 	"Could not fetch master key",
28 	"Could not verify master key",
29 	"Entry already exists in database",
30 	"Database store error",
31 	"Database read error",
32 	"Insufficient access to perform requested operation",
33 	"Data is available for return to client",
34 	"No such entry in the database",
35 	"Memory exhausted",
36 	"Could not fetch system hostname",
37 	"Could not bind port",
38 	"Length mismatch problem",
39 	"Illegal use of wildcard",
40 	"Database is locked or in use--try again later",
41 	"Insecure password rejected",
42 	"Cleartext password and DES key did not match",
43 	"Invalid principal for change srvtab request",
44 	"Attempt do delete immutable principal",
45 	"Reserved kadm error (36)",
46 	"Reserved kadm error (37)",
47 	"Reserved kadm error (38)",
48 	"Reserved kadm error (39)",
49 	"Reserved kadm error (40)",
50 	"Reserved kadm error (41)",
51 	"Reserved kadm error (42)",
52 	"Reserved kadm error (43)",
53 	"Reserved kadm error (44)",
54 	"Reserved kadm error (45)",
55 	"Reserved kadm error (46)",
56 	"Reserved kadm error (47)",
57 	"Reserved kadm error (48)",
58 	"Reserved kadm error (49)",
59 	"Reserved kadm error (50)",
60 	"Reserved kadm error (51)",
61 	"Reserved kadm error (52)",
62 	"Reserved kadm error (53)",
63 	"Reserved kadm error (54)",
64 	"Reserved kadm error (55)",
65 	"Reserved kadm error (56)",
66 	"Reserved kadm error (57)",
67 	"Reserved kadm error (58)",
68 	"Reserved kadm error (59)",
69 	"Reserved kadm error (60)",
70 	"Reserved kadm error (61)",
71 	"Reserved kadm error (62)",
72 	"Reserved kadm error (63)",
73 	"Null passwords are not allowed",
74 	"Password is too short",
75 	"Too few character classes in password",
76 	"Password is in the password dictionary",
77     0
78 };
79 
80 struct error_table {
81     char const * const * msgs;
82     long base;
83     int n_msgs;
84 };
85 struct et_list {
86     struct et_list *next;
87     const struct error_table * table;
88 };
89 extern struct et_list *_et_list;
90 
91 const struct error_table et_kadm_error_table = { text, -1783126272L, 68 };
92 
93 static struct et_list link = { 0, 0 };
94 
95 void initialize_kadm_error_table_r(struct et_list **list);
96 void initialize_kadm_error_table(void);
97 
initialize_kadm_error_table(void)98 void initialize_kadm_error_table(void) {
99     initialize_kadm_error_table_r(&_et_list);
100 }
101 
102 /* For Heimdal compatibility */
initialize_kadm_error_table_r(struct et_list ** list)103 void initialize_kadm_error_table_r(struct et_list **list)
104 {
105     struct et_list *et, **end;
106 
107     for (end = list, et = *list; et; end = &et->next, et = et->next)
108         if (et->table->msgs == text)
109             return;
110     et = malloc(sizeof(struct et_list));
111     if (et == 0) {
112         if (!link.table)
113             et = &link;
114         else
115             return;
116     }
117     et->table = &et_kadm_error_table;
118     et->next = 0;
119     *end = et;
120 }
121