Use a heap-based EVP_MD_CTX
[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_("Proxy had no route to identity provider realm"),
29         N_("IDP Administratively Prohibits Request"),
30         N_("Context is already fully established"),
31         N_("Attempt to use incomplete security context"),
32         N_("Context token is malformed or corrupt"),
33         N_("Error token is malformed or corrupt"),
34         N_("Bad context option"),
35         N_("Name is not a valid service name"),
36         N_("Initiator identity must be a valid name"),
37         N_("Could not determine local host name"),
38         N_("Could not determine acceptor identity"),
39         N_("Acceptor identity different than expected"),
40         N_("Acceptor name is too long or has too many components"),
41         N_("Name token is malformed or corrupt"),
42         N_("Unable to map name to a local identity"),
43         N_("Credential usage type is unknown"),
44         N_("Credential usage does not match requested usage"),
45         N_("Credential is not usable with this mechanism"),
46         N_("Attributes indicate credentials have expired"),
47         N_("Bad credential option"),
48         N_("Default credentials identity unavailable"),
49         N_("Missing default password or other credentials"),
50         N_("Credential is already fully resolved"),
51         N_("CA Certificate blob could not be parsed"),
52         N_("Unable to start identity service"),
53         N_("No identity selected"),
54         N_("Identity service installation error"),
55         N_("Identity service OS error"),
56         N_("Identity service IPC error"),
57         N_("Unknown identity service error"),
58         N_("Bad RFC 4121 wrap or MIC token"),
59         N_("IOV is missing required buffer"),
60         N_("Stream IOV can only contain a single data buffer"),
61         N_("Padding IOV is not permitted for RFC 4121 tokens"),
62         N_("Unknown quality of protection specified"),
63         N_("PRF input too long"),
64         N_("PRF key usage type is unknown"),
65         N_("Failed to initialize EAP library"),
66         N_("Failed to create EAP state machine"),
67         N_("Failed to step EAP state machine"),
68         N_("EAP peer authentication failure"),
69         N_("Received bad EAP message"),
70         N_("Failed to initialize RadSec library"),
71         N_("Failed to create RadSec context"),
72         N_("Name has no attributes"),
73         N_("Failed to initialize attribute providers"),
74         N_("Unknown naming attribute"),
75         N_("Serialised attributes are malformed or corrupt"),
76         N_("Failed to initialize attribute context"),
77         N_("Failed to initialize SAML library"),
78         N_("Failed to process SAML security policy"),
79         N_("Failed in SAML binding processing"),
80         N_("Failed to process SAML profile"),
81         N_("Non-recoverable failure in SAML profile processing"),
82         N_("Temporary failure in SAML profile processing"),
83         N_("Failure related to SAML metadata use"),
84         N_("Failed to initialize Shibboleth"),
85         N_("Failure during local attribute processing"),
86         N_("Failed to extract local attributes"),
87         N_("Failed to filter local attributes"),
88         N_("Failed to resolve local attributes"),
89         N_("Local attribute configuration failure"),
90         N_("Failed to communicate with local attribute server"),
91         N_("Channel bindings do not match"),
92         N_("Channel binding token missing"),
93         N_("Could not find symbol in mechanism glue"),
94         N_("Bad mechanism invoke OID"),
95     0
96 };
97
98 struct error_table {
99     char const * const * msgs;
100     long base;
101     int n_msgs;
102 };
103 struct et_list {
104     struct et_list *next;
105     const struct error_table * table;
106 };
107 extern struct et_list *_et_list;
108
109 const struct error_table et_eapg_error_table = { text, 2109382912L, 84 };
110
111 static struct et_list link = { 0, 0 };
112
113 void initialize_eapg_error_table_r(struct et_list **list);
114 void initialize_eapg_error_table(void);
115
116 void initialize_eapg_error_table(void) {
117     initialize_eapg_error_table_r(&_et_list);
118 }
119
120 /* For Heimdal compatibility */
121 void initialize_eapg_error_table_r(struct et_list **list)
122 {
123     struct et_list *et, **end;
124
125     for (end = list, et = *list; et; end = &et->next, et = et->next)
126         if (et->table->msgs == text)
127             return;
128     et = malloc(sizeof(struct et_list));
129     if (et == 0) {
130         if (!link.table)
131             et = &link;
132         else
133             return;
134     }
135     et->table = &et_eapg_error_table;
136     et->next = 0;
137     *end = et;
138 }