Grid Community Toolkit  6.2.1629922860 (tag: v6.2.20210826)
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
globus_gsi_gss_constants.h
Go to the documentation of this file.
1 /*
2  * Copyright 1999-2006 University of Chicago
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef GLOBUS_GSI_GSSAPI_CONSTANTS_H
18 #define GLOBUS_GSI_GSSAPI_CONSTANTS_H
19 
26 extern char * globus_l_gsi_gssapi_error_strings[];
27 
38 typedef enum
39 {
40  GLOBUS_GSI_GSSAPI_ERROR_HANDSHAKE = 0,
41  GLOBUS_GSI_GSSAPI_ERROR_NO_GLOBUSID = 1,
42  GLOBUS_GSI_GSSAPI_ERROR_PROCESS_CERT = 2,
43  GLOBUS_GSI_GSSAPI_ERROR_MUTUAL_AUTH = 3,
44  GLOBUS_GSI_GSSAPI_ERROR_WRAP_BIO = 4,
45  GLOBUS_GSI_GSSAPI_ERROR_PROXY_VIOLATION = 5,
46  GLOBUS_GSI_GSSAPI_ERROR_PROXY_NOT_RECEIVED = 6,
47  GLOBUS_GSI_GSSAPI_ERROR_BAD_ARGUMENT = 7,
48  GLOBUS_GSI_GSSAPI_ERROR_IMPEXP_BIO_SSL = 8,
49  GLOBUS_GSI_GSSAPI_ERROR_IMPEXP_NO_CIPHER = 9,
50  GLOBUS_GSI_GSSAPI_ERROR_IMPEXP_BAD_LEN = 10,
51  GLOBUS_GSI_GSSAPI_ERROR_WITH_GSS_CREDENTIAL = 11,
52  GLOBUS_GSI_GSSAPI_ERROR_EXPORT_FAIL = 12,
53  GLOBUS_GSI_GSSAPI_ERROR_IMPORT_FAIL = 13,
54  GLOBUS_GSI_GSSAPI_ERROR_READ_BIO = 14,
55  GLOBUS_GSI_GSSAPI_ERROR_WRITE_BIO = 15,
56  GLOBUS_GSI_GSSAPI_ERROR_WITH_GSS_CONTEXT = 16,
57  GLOBUS_GSI_GSSAPI_ERROR_UNEXPECTED_FORMAT = 17,
58  GLOBUS_GSI_GSSAPI_ERROR_WITH_GSI_PROXY = 18,
59  GLOBUS_GSI_GSSAPI_ERROR_WITH_CALLBACK_DATA = 19,
60  GLOBUS_GSI_GSSAPI_ERROR_BAD_DATE = 20,
61  GLOBUS_GSI_GSSAPI_ERROR_BAD_MECH = 21,
62  GLOBUS_GSI_GSSAPI_ERROR_ADD_EXT = 22,
63  GLOBUS_GSI_GSSAPI_ERROR_REMOTE_CERT_VERIFY_FAILED = 23,
64  GLOBUS_GSI_GSSAPI_ERROR_OUT_OF_MEMORY = 24,
65  GLOBUS_GSI_GSSAPI_ERROR_BAD_NAME = 25,
66  GLOBUS_GSI_GSSAPI_ERROR_UNORDERED_CHAIN = 26,
67  GLOBUS_GSI_GSSAPI_ERROR_WITH_GSI_CREDENTIAL = 27,
68  GLOBUS_GSI_GSSAPI_ERROR_WITH_OPENSSL = 28,
69  GLOBUS_GSI_GSSAPI_ERROR_TOKEN_FAIL = 29,
70  GLOBUS_GSI_GSSAPI_ERROR_WITH_DELEGATION = 30,
71  GLOBUS_GSI_GSSAPI_ERROR_WITH_OID = 31,
72  GLOBUS_GSI_GSSAPI_ERROR_EXPIRED_CREDENTIAL = 32,
73  GLOBUS_GSI_GSSAPI_ERROR_WITH_MIC = 33,
74  GLOBUS_GSI_GSSAPI_ERROR_ENCRYPTING_MESSAGE = 34,
75  GLOBUS_GSI_GSSAPI_ERROR_WITH_BUFFER = 35,
76  GLOBUS_GSI_GSSAPI_ERROR_GETTING_PEER_CRED = 36,
77  GLOBUS_GSI_GSSAPI_ERROR_UNKNOWN_OPTION = 37,
78  GLOBUS_GSI_GSSAPI_ERROR_CREATING_ERROR_OBJ = 38,
79  GLOBUS_GSI_GSSAPI_ERROR_CANONICALIZING_HOST = 39,
80  GLOBUS_GSI_GSSAPI_ERROR_UNSUPPORTED = 40,
81  GLOBUS_GSI_GSSAPI_ERROR_AUTHZ_DENIED = 41,
82  GLOBUS_GSI_GSSAPI_ERROR_LAST = 42
84 
89 typedef enum {
90  GSS_IMPEXP_OPAQUE_FORM = 0,
91  GSS_IMPEXP_MECH_SPECIFIC = 1
93 
98 typedef enum {
99  GSS_CON_ST_HANDSHAKE = 0,
100  GSS_CON_ST_TOKEN1,
101  GSS_CON_ST_TOKEN2,
102  GSS_CON_ST_FLAGS,
103  GSS_CON_ST_REQ,
104  GSS_CON_ST_CERT,
105  GSS_CON_ST_DONE
106 } gss_con_st_t;
107 
112 typedef enum
113 {
114  GSS_DELEGATION_START,
115  GSS_DELEGATION_DONE,
116  GSS_DELEGATION_COMPLETE_CRED,
117  GSS_DELEGATION_SIGN_CERT
119 
124 typedef enum
125 {
126  GSS_NAMES_NOT_EQUAL = 0,
127  GSS_NAMES_EQUAL = 1
129 
134 typedef enum
135 {
136  GSS_CTX_FULLY_ESTABLISHED = 1,
137  GSS_CTX_TOKEN_EXPECTED_FROM_PEER = 0
139 
144 typedef enum
145 {
146  GSS_CONFIDENTIALITY = 1,
147  GSS_INTEGRITY_ONLY = 0
149 
150 #define GSS_SSL_MESSAGE_DIGEST_PADDING 12
151 #define GSS_SSL3_WRITE_SEQUENCE_SIZE 8
152 
153 #endif /* GLOBUS_GSI_GSSAPI_CONSTANTS_H */
gss_delegation_state_t
Delegation State Type.
Definition: globus_gsi_gss_constants.h:112
gss_impexp_cred_type_t
Cred Export/Import Type.
Definition: globus_gsi_gss_constants.h:89
gss_con_st_t
Connection State Type.
Definition: globus_gsi_gss_constants.h:98
globus_gsi_gssapi_error_t
Error Codes.
Definition: globus_gsi_gss_constants.h:38
gss_conf_state_t
Confidentiality State Type.
Definition: globus_gsi_gss_constants.h:144
gss_ctx_state_t
Context Established State Type.
Definition: globus_gsi_gss_constants.h:134
gss_names_equal_t
Compare Name Type.
Definition: globus_gsi_gss_constants.h:124