0.9.2-3+deb8u1
[mech_eap.git] / mech_eap / gsseap_err.c
1 /*
2  * gsseap_err.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_(""),
12         N_("Buffer is incorrect size"),
13         N_("Mechanism OID is incorrect"),
14         N_("Token header is malformed or corrupt"),
15         N_("Token is missing data"),
16         N_("Packet was replayed in wrong direction"),
17         N_("Received token ID does not match expected token ID"),
18         N_("Critical inner token type unavailable"),
19         N_("Missing required inner token"),
20         N_("Duplicate inner token received"),
21         N_("Recieved invalid inner token for current state"),
22         N_("EAP key unavailable"),
23         N_("EAP key too short"),
24         N_("Authentication rejected by RADIUS server"),
25         N_("Received unknown response code from RADIUS server"),
26         N_("RADIUS response is missing EAP request"),
27         N_("Generic RADIUS failure"),
28         N_("Context is already fully established"),
29         N_("Attempt to use incomplete security context"),
30         N_("Context token is malformed or corrupt"),
31         N_("Error token is malformed or corrupt"),
32         N_("Bad context option"),
33         N_("Name is not a valid service name"),
34         N_("Initiator identity must be a valid name"),
35         N_("Could not determine local host name"),
36         N_("Could not determine acceptor identity"),
37         N_("Acceptor identity different than expected"),
38         N_("Acceptor name is too long or has too many components"),
39         N_("Name token is malformed or corrupt"),
40         N_("Unable to map name to a local identity"),
41         N_("Credential usage type is unknown"),
42         N_("Credential usage does not match requested usage"),
43         N_("Credential is not usable with this mechanism"),
44         N_("Attributes indicate credentials have expired"),
45         N_("Bad credential option"),
46         N_("Default credentials identity unavailable"),
47         N_("Missing default password or other credentials"),
48         N_("Credential is already fully resolved"),
49         N_("CA Certificate blob could not be parsed"),
50         N_("Unable to start identity service"),
51         N_("No identity selected"),
52         N_("Identity service installation error"),
53         N_("Identity service OS error"),
54         N_("Identity service IPC error"),
55         N_("Unknown identity service error"),
56         N_("Bad RFC 4121 wrap or MIC token"),
57         N_("IOV is missing required buffer"),
58         N_("Stream IOV can only contain a single data buffer"),
59         N_("Padding IOV is not permitted for RFC 4121 tokens"),
60         N_("Unknown quality of protection specified"),
61         N_("PRF input too long"),
62         N_("PRF key usage type is unknown"),
63         N_("Failed to initialize EAP library"),
64         N_("Failed to create EAP state machine"),
65         N_("Failed to step EAP state machine"),
66         N_("EAP peer authentication failure"),
67         N_("Received bad EAP message"),
68         N_("Failed to initialize RadSec library"),
69         N_("Failed to create RadSec context"),
70         N_("Name has no attributes"),
71         N_("Failed to initialize attribute providers"),
72         N_("Unknown naming attribute"),
73         N_("Serialised attributes are malformed or corrupt"),
74         N_("Failed to initialize attribute context"),
75         N_("Failed to initialize SAML library"),
76         N_("Failed to process SAML security policy"),
77         N_("Failed in SAML binding processing"),
78         N_("Failed to process SAML profile"),
79         N_("Non-recoverable failure in SAML profile processing"),
80         N_("Temporary failure in SAML profile processing"),
81         N_("Failure related to SAML metadata use"),
82         N_("Failed to initialize Shibboleth"),
83         N_("Failure during local attribute processing"),
84         N_("Failed to extract local attributes"),
85         N_("Failed to filter local attributes"),
86         N_("Failed to resolve local attributes"),
87         N_("Local attribute configuration failure"),
88         N_("Failed to communicate with local attribute server"),
89         N_("Channel bindings do not match"),
90         N_("Channel binding token missing"),
91         N_("Could not find symbol in mechanism glue"),
92         N_("Bad mechanism invoke OID"),
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_eapg_error_table = { text, 2109382912L, 82 };
108
109 static struct et_list link = { 0, 0 };
110
111 void initialize_eapg_error_table_r(struct et_list **list);
112 void initialize_eapg_error_table(void);
113
114 void initialize_eapg_error_table(void) {
115     initialize_eapg_error_table_r(&_et_list);
116 }
117
118 /* For Heimdal compatibility */
119 void initialize_eapg_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_eapg_error_table;
134     et->next = 0;
135     *end = et;
136 }