Merge branch 'master' of ssh://moonshot.suchdamage.org:822/srv/git/moonshot
[mech_eap.git] / gsseap_err.et
1 #
2 # Copyright (c) 2010, 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 # 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_EXT_UNAVAILABLE,     "Critical extension unavailable"
47 error_code GSSEAP_MISSING_REQUIRED_EXT,     "Missing required extension"
48 error_code GSSEAP_KEY_UNAVAILABLE,          "EAP key unavailable"
49 error_code GSSEAP_KEY_TOO_SHORT,            "EAP key too short"
50 error_code GSSEAP_RADIUS_AUTH_FAILURE,      "Authentication rejected by RADIUS server"
51 error_code GSSEAP_UNKNOWN_RADIUS_CODE,      "Received unknown response code from RADIUS server"
52 error_code GSSEAP_MISSING_EAP_REQUEST,      "RADIUS response is missing EAP request"
53 error_code GSSEAP_GENERIC_RADIUS_ERROR,     "Generic RADIUS error"
54
55 #
56 # Context errors
57 #
58 error_code GSSEAP_CONTEXT_ESTABLISHED,      "Context is already fully established"
59 error_code GSSEAP_CONTEXT_INCOMPLETE,       "Attempt to use incomplete security context"
60 error_code GSSEAP_BAD_CONTEXT_TOKEN,        "Context token is malformed or corrupt"
61 error_code GSSEAP_BAD_ERROR_TOKEN,          "Error token is malformed or corrupt"
62 error_code GSSEAP_BAD_CONTEXT_OPTION,       "Bad context option"
63
64 #
65 # Name errors
66 #
67 error_code GSSEAP_BAD_SERVICE_NAME,         "Name is not a valid service name"
68 error_code GSSEAP_BAD_INITIATOR_NAME,       "Initiator identity must be a valid name"
69 error_code GSSEAP_NO_HOSTNAME,              "Could not determine local host name"
70
71 #
72 # Credential errors
73 #
74 error_code GSSEAP_BAD_USAGE,                "Credential usage type is unknown"
75 error_code GSSEAP_CRED_USAGE_MISMATCH,      "Credential usage does not match requested usage"
76 error_code GSSEAP_CRED_MECH_MISMATCH,       "Credential is not usable with this mechanism"
77 error_code GSSEAP_BAD_CRED_OPTION,          "Bad credential option"
78
79 #
80 # Wrap/unwrap/PRF errors
81 #
82 error_code GSSEAP_BAD_WRAP_TOKEN,           "Bad RFC 4121 wrap or MIC token"
83 error_code GSSEAP_MISSING_IOV,              "IOV is missing required buffer"
84 error_code GSSEAP_BAD_STREAM_IOV,           "Stream IOV can only contain a single data buffer"
85 error_code GSSEAP_BAD_PADDING_IOV,          "Padding IOV is not permitted for RFC 4121 tokens"
86 error_code GSSEAP_UNKNOWN_QOP,              "Unknown quality of protection specified"
87 error_code GSSEAP_INPUT_TOO_LONG,           "PRF input too long"
88 error_code GSSEAP_BAD_PRF_KEY,              "PRF key usage type is unknown"
89
90 #
91 # libeap errors
92 #
93 error_code GSSEAP_LIBEAP_INIT_FAILURE,      "Failed to initialise EAP library"
94 error_code GSSEAP_PEER_SM_INIT_FAILURE,     "Failed to create EAP state machine"
95 error_code GSSEAP_PEER_AUTH_FAILURE,        "EAP peer authentication failure"
96 error_code GSSEAP_PEER_BAD_MESSAGE,         "Received bad EAP message"
97
98 #
99 # RadSec initialisation errors
100 #
101 error_code GSSEAP_RADSEC_INIT_FAILURE,      "Failed to initialise RadSec library"
102 error_code GSSEAP_RADSEC_CONTEXT_FAILURE,   "Failed to create RadSec context"
103
104 #
105 # SAML/Shibboleth/attribute errors
106 #
107 error_code GSSEAP_SAML_INIT_FAILURE,        "Failed to initialise SAML library"
108 error_code GSSEAP_SHIB_INIT_FAILURE,        "Failed to initialise Shibboleth"
109 error_code GSSEAP_NO_ATTR_CONTEXT,          "Name has no attributes"
110 error_code GSSEAP_NO_ATTR_PROVIDERS,        "Failed to initialise attribute providers"
111 error_code GSSEAP_NO_SUCH_ATTR,             "Unknown naming attribute"
112 error_code GSSEAP_BAD_ATTR_TOKEN,           "Serialised attributes are malformed or corrupt"
113 error_code GSSEAP_ATTR_CONTEXT_FAILURE,     "Failed to initialise attribute context"
114
115 #
116 # Extensions
117 #
118 error_code GSSEAP_BINDINGS_MISMATCH,        "Channel bindings do not match"
119 error_code GSSEAP_NO_MECHGLUE_SYMBOL,       "Could not find symbol in mechanism glue"
120 error_code GSSEAP_BAD_INVOCATION,           "Bad mechanism invoke OID"
121
122 end