Fixes for Heimdal (macOS) builds from Stefan.
[mech_eap.git] / mech_eap / gsseap_err.et
1 #
2 # Copyright (c) 2011, JANET(UK)
3 #  All rights reserved.
4
5 #  Redistribution and use in source and binary forms, with or without
6 #  modification, are permitted provided that the following conditions
7 #  are met:
8
9 #  1. Redistributions of source code must retain the above copyright
10 #     notice, this list of conditions and the following disclaimer.
11
12 #  2. Redistributions in binary form must reproduce the above copyright
13 #     notice, this list of conditions and the following disclaimer in the
14 #     documentation and/or other materials provided with the distribution.
15
16 #  3. Neither the name of JANET(UK) nor the names of its contributors
17 #     may be used to endorse or promote products derived from this software
18 #     without specific prior written permission.
19
20 #  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21 #  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 #  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 #  ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24 #  FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 #  DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 #  OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 #  HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 #  LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 #  OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 #  SUCH DAMAGE.
31 #
32
33 error_table eapg
34
35 #
36 # Standards-track Protocol errors that can be returned in an error token. This should match
37 # up with makeErrorToken in accept_sec_context.c.
38 #
39 error_code GSSEAP_RESERVED,                     ""
40 error_code GSSEAP_WRONG_SIZE,                   "Buffer is incorrect size"
41 error_code GSSEAP_WRONG_MECH,                   "Mechanism OID is incorrect"
42 error_code GSSEAP_BAD_TOK_HEADER,               "Token header is malformed or corrupt"
43 error_code GSSEAP_TOK_TRUNC,                    "Token is missing data"
44 error_code GSSEAP_BAD_DIRECTION,                "Packet was replayed in wrong direction"
45 error_code GSSEAP_WRONG_TOK_ID,                 "Received token ID does not match expected token ID"
46 error_code GSSEAP_CRIT_ITOK_UNAVAILABLE,        "Critical inner token type unavailable"
47 error_code GSSEAP_MISSING_REQUIRED_ITOK,        "Missing required inner token"
48 error_code GSSEAP_DUPLICATE_ITOK,               "Duplicate inner token received"
49 error_code GSSEAP_WRONG_ITOK,                   "Recieved invalid inner token for current state"
50 error_code GSSEAP_KEY_UNAVAILABLE,              "EAP key unavailable"
51 error_code GSSEAP_KEY_TOO_SHORT,                "EAP key too short"
52 error_code GSSEAP_RADIUS_AUTH_FAILURE,          "Authentication rejected by RADIUS server"
53 error_code GSSEAP_UNKNOWN_RADIUS_CODE,          "Received unknown response code from RADIUS server"
54 error_code GSSEAP_MISSING_EAP_REQUEST,          "RADIUS response is missing EAP request"
55 error_code GSSEAP_RADIUS_PROT_FAILURE,          "Generic RADIUS failure"
56
57 # Extension errors starting with 128 that can be returned in a
58 #protocol token; again should match accept_sec_context.c 
59
60 error_code GSSEAP_RADIUS_UNROUTABLE, "Proxy had no route to identity provider realm"
61
62 error_code GSSEAP_RADIUS_ADMIN_PROHIBIT, "IDP Administratively Prohibits Request"
63 #
64 # Context errors
65 #
66 error_code GSSEAP_CONTEXT_ESTABLISHED,          "Context is already fully established"
67 error_code GSSEAP_CONTEXT_INCOMPLETE,           "Attempt to use incomplete security context"
68 error_code GSSEAP_BAD_CONTEXT_TOKEN,            "Context token is malformed or corrupt"
69 error_code GSSEAP_BAD_ERROR_TOKEN,              "Error token is malformed or corrupt"
70 error_code GSSEAP_BAD_CONTEXT_OPTION,           "Bad context option"
71
72 #
73 # Name errors
74 #
75 error_code GSSEAP_BAD_SERVICE_NAME,             "Name is not a valid service name"
76 error_code GSSEAP_BAD_INITIATOR_NAME,           "Initiator identity must be a valid name"
77 error_code GSSEAP_NO_HOSTNAME,                  "Could not determine local host name"
78 error_code GSSEAP_NO_ACCEPTOR_NAME,             "Could not determine acceptor identity"
79 error_code GSSEAP_WRONG_ACCEPTOR_NAME,          "Acceptor identity different than expected"
80 error_code GSSEAP_BAD_ACCEPTOR_NAME,            "Acceptor name is too long or has too many components"
81 error_code GSSEAP_BAD_NAME_TOKEN,               "Name token is malformed or corrupt"
82 error_code GSSEAP_NO_LOCAL_MAPPING,             "Unable to map name to a local identity"
83
84 #
85 # Credential errors
86 #
87 error_code GSSEAP_BAD_USAGE,                    "Credential usage type is unknown"
88 error_code GSSEAP_CRED_USAGE_MISMATCH,          "Credential usage does not match requested usage"
89 error_code GSSEAP_CRED_MECH_MISMATCH,           "Credential is not usable with this mechanism"
90 error_code GSSEAP_CRED_EXPIRED,                 "Attributes indicate credentials have expired"
91 error_code GSSEAP_BAD_CRED_OPTION,              "Bad credential option"
92 error_code GSSEAP_NO_DEFAULT_IDENTITY,          "Default credentials identity unavailable"
93 error_code GSSEAP_NO_DEFAULT_CRED,              "Missing default password or other credentials"
94 error_code GSSEAP_CRED_RESOLVED,                "Credential is already fully resolved"
95 error_code GSSEAP_BAD_CACERTIFICATE,            "CA Certificate blob could not be parsed"
96
97 #
98 # Local identity service errors
99 #
100 error_code GSSEAP_UNABLE_TO_START_IDENTITY_SERVICE,     "Unable to start identity service"
101 error_code GSSEAP_NO_IDENTITY_SELECTED,                 "No identity selected"
102 error_code GSSEAP_IDENTITY_SERVICE_INSTALL_ERROR,       "Identity service installation error"
103 error_code GSSEAP_IDENTITY_SERVICE_OS_ERROR,            "Identity service OS error"
104 error_code GSSEAP_IDENTITY_SERVICE_IPC_ERROR,           "Identity service IPC error"
105 error_code GSSEAP_IDENTITY_SERVICE_UNKNOWN_ERROR,       "Unknown identity service error"
106
107 #
108 # Wrap/unwrap/PRF errors
109 #
110 error_code GSSEAP_BAD_WRAP_TOKEN,               "Bad RFC 4121 wrap or MIC token"
111 error_code GSSEAP_MISSING_IOV,                  "IOV is missing required buffer"
112 error_code GSSEAP_BAD_STREAM_IOV,               "Stream IOV can only contain a single data buffer"
113 error_code GSSEAP_BAD_PADDING_IOV,              "Padding IOV is not permitted for RFC 4121 tokens"
114 error_code GSSEAP_UNKNOWN_QOP,                  "Unknown quality of protection specified"
115 error_code GSSEAP_INPUT_TOO_LONG,               "PRF input too long"
116 error_code GSSEAP_BAD_PRF_KEY,                  "PRF key usage type is unknown"
117
118 #
119 # libeap errors
120 #
121 error_code GSSEAP_LIBEAP_INIT_FAILURE,          "Failed to initialize EAP library"
122 error_code GSSEAP_PEER_SM_INIT_FAILURE,         "Failed to create EAP state machine"
123 error_code GSSEAP_PEER_SM_STEP_FAILURE,         "Failed to step EAP state machine"
124 error_code GSSEAP_PEER_AUTH_FAILURE,            "EAP peer authentication failure"
125 error_code GSSEAP_PEER_BAD_MESSAGE,             "Received bad EAP message"
126
127 #
128 # RadSec initialisation errors
129 #
130 error_code GSSEAP_RADSEC_INIT_FAILURE,          "Failed to initialize RadSec library"
131 error_code GSSEAP_RADSEC_CONTEXT_FAILURE,       "Failed to create RadSec context"
132
133 #
134 # Attribute errors
135 #
136 error_code GSSEAP_NO_ATTR_CONTEXT,              "Name has no attributes"
137 error_code GSSEAP_NO_ATTR_PROVIDERS,            "Failed to initialize attribute providers"
138 error_code GSSEAP_NO_SUCH_ATTR,                 "Unknown naming attribute"
139 error_code GSSEAP_BAD_ATTR_TOKEN,               "Serialised attributes are malformed or corrupt"
140 error_code GSSEAP_ATTR_CONTEXT_FAILURE,         "Failed to initialize attribute context"
141
142 #
143 # OpenSAML errors
144 #
145 error_code GSSEAP_SAML_INIT_FAILURE,            "Failed to initialize SAML library"
146 error_code GSSEAP_SAML_SEC_POLICY_FAILURE,      "Failed to process SAML security policy"
147 error_code GSSEAP_SAML_BINDING_FAILURE,         "Failed in SAML binding processing"
148 error_code GSSEAP_SAML_PROFILE_FAILURE,         "Failed to process SAML profile"
149 error_code GSSEAP_SAML_FATAL_PROFILE_FAILURE,   "Non-recoverable failure in SAML profile processing"
150 error_code GSSEAP_SAML_RETRY_PROFILE_FAILURE,   "Temporary failure in SAML profile processing"
151 error_code GSSEAP_SAML_METADATA_FAILURE,        "Failure related to SAML metadata use"
152
153 #
154 # Shibboleth errors
155 #
156 error_code GSSEAP_SHIB_INIT_FAILURE,            "Failed to initialize Shibboleth"
157 error_code GSSEAP_SHIB_ATTR_FAILURE,            "Failure during local attribute processing"
158 error_code GSSEAP_SHIB_ATTR_EXTRACT_FAILURE,    "Failed to extract local attributes"
159 error_code GSSEAP_SHIB_ATTR_FILTER_FAILURE,     "Failed to filter local attributes"
160 error_code GSSEAP_SHIB_ATTR_RESOLVE_FAILURE,    "Failed to resolve local attributes"
161 error_code GSSEAP_SHIB_CONFIG_FAILURE,          "Local attribute configuration failure"
162 error_code GSSEAP_SHIB_LISTENER_FAILURE,        "Failed to communicate with local attribute server"
163
164 #
165 # Extensions
166 #
167 error_code GSSEAP_BINDINGS_MISMATCH,            "Channel bindings do not match"
168 error_code GSSEAP_MISSING_BINDINGS,             "Channel binding token missing"
169 error_code GSSEAP_NO_MECHGLUE_SYMBOL,           "Could not find symbol in mechanism glue"
170 error_code GSSEAP_BAD_INVOCATION,               "Bad mechanism invoke OID"
171
172 end