globus_gsi_cert_utils_constants.h
/*
* Copyright 1999-2006 University of Chicago
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef GLOBUS_DONT_DOCUMENT_INTERNAL
#endif
#ifndef GLOBUS_GSI_CERT_UTILS_CONSTANTS_H
#define GLOBUS_GSI_CERT_UTILS_CONSTANTS_H
#ifdef __cplusplus
extern "C" {
#endif
typedef enum
{
GLOBUS_GSI_CERT_UTILS_ERROR_SUCCESS = 0,
GLOBUS_GSI_CERT_UTILS_ERROR_GETTING_NAME_ENTRY_OF_SUBJECT = 1,
GLOBUS_GSI_CERT_UTILS_ERROR_COPYING_SUBJECT = 2,
GLOBUS_GSI_CERT_UTILS_ERROR_GETTING_CN_ENTRY = 3,
GLOBUS_GSI_CERT_UTILS_ERROR_ADDING_CN_TO_SUBJECT = 4,
GLOBUS_GSI_CERT_UTILS_ERROR_OUT_OF_MEMORY = 5,
GLOBUS_GSI_CERT_UTILS_ERROR_UNEXPECTED_FORMAT = 6,
GLOBUS_GSI_CERT_UTILS_ERROR_NON_COMPLIANT_PROXY = 7,
GLOBUS_GSI_CERT_UTILS_ERROR_DETERMINING_CERT_TYPE = 8,
GLOBUS_GSI_CERT_UTILS_ERROR_LAST = 9
} globus_gsi_cert_utils_error_t;
typedef enum globus_gsi_cert_utils_cert_type_e
{
GLOBUS_GSI_CERT_UTILS_TYPE_DEFAULT = 0,
GLOBUS_GSI_CERT_UTILS_TYPE_EEC = (1 << 0),
GLOBUS_GSI_CERT_UTILS_TYPE_CA = (1 << 1),
GLOBUS_GSI_CERT_UTILS_TYPE_GSI_2 = (1 << 2),
GLOBUS_GSI_CERT_UTILS_TYPE_GSI_3 = (1 << 3),
GLOBUS_GSI_CERT_UTILS_TYPE_RFC = (1 << 4),
GLOBUS_GSI_CERT_UTILS_TYPE_FORMAT_MASK =
(GLOBUS_GSI_CERT_UTILS_TYPE_EEC |
GLOBUS_GSI_CERT_UTILS_TYPE_CA |
GLOBUS_GSI_CERT_UTILS_TYPE_GSI_2 |
GLOBUS_GSI_CERT_UTILS_TYPE_GSI_3 |
GLOBUS_GSI_CERT_UTILS_TYPE_RFC),
GLOBUS_GSI_CERT_UTILS_TYPE_IMPERSONATION_PROXY
= (1 << 5),
GLOBUS_GSI_CERT_UTILS_TYPE_LIMITED_PROXY
= (1 << 6),
GLOBUS_GSI_CERT_UTILS_TYPE_RESTRICTED_PROXY
= (1 << 7),
GLOBUS_GSI_CERT_UTILS_TYPE_INDEPENDENT_PROXY
= (1 << 8),
GLOBUS_GSI_CERT_UTILS_TYPE_PROXY_MASK =
(GLOBUS_GSI_CERT_UTILS_TYPE_IMPERSONATION_PROXY |
GLOBUS_GSI_CERT_UTILS_TYPE_LIMITED_PROXY |
GLOBUS_GSI_CERT_UTILS_TYPE_RESTRICTED_PROXY |
GLOBUS_GSI_CERT_UTILS_TYPE_INDEPENDENT_PROXY),
GLOBUS_GSI_CERT_UTILS_TYPE_GSI_3_IMPERSONATION_PROXY =
(GLOBUS_GSI_CERT_UTILS_TYPE_GSI_3 |
GLOBUS_GSI_CERT_UTILS_TYPE_IMPERSONATION_PROXY),
GLOBUS_GSI_CERT_UTILS_TYPE_GSI_3_INDEPENDENT_PROXY =
(GLOBUS_GSI_CERT_UTILS_TYPE_GSI_3 |
GLOBUS_GSI_CERT_UTILS_TYPE_INDEPENDENT_PROXY),
GLOBUS_GSI_CERT_UTILS_TYPE_GSI_3_LIMITED_PROXY =
(GLOBUS_GSI_CERT_UTILS_TYPE_GSI_3 |
GLOBUS_GSI_CERT_UTILS_TYPE_LIMITED_PROXY),
GLOBUS_GSI_CERT_UTILS_TYPE_GSI_3_RESTRICTED_PROXY =
(GLOBUS_GSI_CERT_UTILS_TYPE_GSI_3 |
GLOBUS_GSI_CERT_UTILS_TYPE_RESTRICTED_PROXY),
GLOBUS_GSI_CERT_UTILS_TYPE_GSI_2_PROXY =
(GLOBUS_GSI_CERT_UTILS_TYPE_GSI_2 |
GLOBUS_GSI_CERT_UTILS_TYPE_IMPERSONATION_PROXY),
GLOBUS_GSI_CERT_UTILS_TYPE_GSI_2_LIMITED_PROXY =
(GLOBUS_GSI_CERT_UTILS_TYPE_GSI_2 |
GLOBUS_GSI_CERT_UTILS_TYPE_LIMITED_PROXY),
GLOBUS_GSI_CERT_UTILS_TYPE_RFC_IMPERSONATION_PROXY =
(GLOBUS_GSI_CERT_UTILS_TYPE_RFC |
GLOBUS_GSI_CERT_UTILS_TYPE_IMPERSONATION_PROXY),
GLOBUS_GSI_CERT_UTILS_TYPE_RFC_INDEPENDENT_PROXY =
(GLOBUS_GSI_CERT_UTILS_TYPE_RFC |
GLOBUS_GSI_CERT_UTILS_TYPE_INDEPENDENT_PROXY),
GLOBUS_GSI_CERT_UTILS_TYPE_RFC_LIMITED_PROXY =
(GLOBUS_GSI_CERT_UTILS_TYPE_RFC |
GLOBUS_GSI_CERT_UTILS_TYPE_LIMITED_PROXY),
GLOBUS_GSI_CERT_UTILS_TYPE_RFC_RESTRICTED_PROXY =
(GLOBUS_GSI_CERT_UTILS_TYPE_RFC |
GLOBUS_GSI_CERT_UTILS_TYPE_RESTRICTED_PROXY)
} globus_gsi_cert_utils_cert_type_t;
#ifdef __cplusplus
}
#endif
#endif
GLOBUS_GSI_CERT_UTILS_TYPE_FORMAT_MASK
Definition: globus_gsi_cert_utils_constants.h:100
GLOBUS_GSI_CERT_UTILS_TYPE_EEC
Definition: globus_gsi_cert_utils_constants.h:90
GLOBUS_GSI_CERT_UTILS_ERROR_GETTING_CN_ENTRY
Definition: globus_gsi_cert_utils_constants.h:49
GLOBUS_GSI_CERT_UTILS_TYPE_GSI_2
Definition: globus_gsi_cert_utils_constants.h:94
GLOBUS_GSI_CERT_UTILS_TYPE_RESTRICTED_PROXY
Definition: globus_gsi_cert_utils_constants.h:113
GLOBUS_GSI_CERT_UTILS_TYPE_RFC_INDEPENDENT_PROXY
Definition: globus_gsi_cert_utils_constants.h:163
GLOBUS_GSI_CERT_UTILS_TYPE_RFC_LIMITED_PROXY
Definition: globus_gsi_cert_utils_constants.h:167
GLOBUS_GSI_CERT_UTILS_ERROR_COPYING_SUBJECT
Definition: globus_gsi_cert_utils_constants.h:47
GLOBUS_GSI_CERT_UTILS_ERROR_GETTING_NAME_ENTRY_OF_SUBJECT
Definition: globus_gsi_cert_utils_constants.h:45
GLOBUS_GSI_CERT_UTILS_ERROR_NON_COMPLIANT_PROXY
Definition: globus_gsi_cert_utils_constants.h:58
GLOBUS_GSI_CERT_UTILS_ERROR_OUT_OF_MEMORY
Definition: globus_gsi_cert_utils_constants.h:53
GLOBUS_GSI_CERT_UTILS_TYPE_LIMITED_PROXY
Definition: globus_gsi_cert_utils_constants.h:110
GLOBUS_GSI_CERT_UTILS_TYPE_RFC_RESTRICTED_PROXY
Definition: globus_gsi_cert_utils_constants.h:171
globus_gsi_cert_utils_error_t
globus_gsi_cert_utils_error_t
Definition: globus_gsi_cert_utils_constants.h:40
GLOBUS_GSI_CERT_UTILS_ERROR_DETERMINING_CERT_TYPE
Definition: globus_gsi_cert_utils_constants.h:60
GLOBUS_GSI_CERT_UTILS_TYPE_GSI_2_LIMITED_PROXY
Definition: globus_gsi_cert_utils_constants.h:155
GLOBUS_GSI_CERT_UTILS_ERROR_ADDING_CN_TO_SUBJECT
Definition: globus_gsi_cert_utils_constants.h:51
GLOBUS_GSI_CERT_UTILS_TYPE_CA
Definition: globus_gsi_cert_utils_constants.h:92
GLOBUS_GSI_CERT_UTILS_TYPE_DEFAULT
Definition: globus_gsi_cert_utils_constants.h:88
globus_gsi_cert_utils_cert_type_e
globus_gsi_cert_utils_cert_type_e
Definition: globus_gsi_cert_utils_constants.h:85
GLOBUS_GSI_CERT_UTILS_TYPE_GSI_3_RESTRICTED_PROXY
Definition: globus_gsi_cert_utils_constants.h:147
GLOBUS_GSI_CERT_UTILS_ERROR_LAST
Definition: globus_gsi_cert_utils_constants.h:62
GLOBUS_GSI_CERT_UTILS_TYPE_GSI_3_INDEPENDENT_PROXY
Definition: globus_gsi_cert_utils_constants.h:135
GLOBUS_GSI_CERT_UTILS_TYPE_IMPERSONATION_PROXY
Definition: globus_gsi_cert_utils_constants.h:107
GLOBUS_GSI_CERT_UTILS_TYPE_RFC
Definition: globus_gsi_cert_utils_constants.h:98
GLOBUS_GSI_CERT_UTILS_TYPE_INDEPENDENT_PROXY
Definition: globus_gsi_cert_utils_constants.h:116
globus_gsi_cert_utils_cert_type_t
enum globus_gsi_cert_utils_cert_type_e globus_gsi_cert_utils_cert_type_t
GLOBUS_GSI_CERT_UTILS_ERROR_SUCCESS
Definition: globus_gsi_cert_utils_constants.h:43
GLOBUS_GSI_CERT_UTILS_TYPE_RFC_IMPERSONATION_PROXY
Definition: globus_gsi_cert_utils_constants.h:159
GLOBUS_GSI_CERT_UTILS_TYPE_GSI_3_IMPERSONATION_PROXY
Definition: globus_gsi_cert_utils_constants.h:128
GLOBUS_GSI_CERT_UTILS_TYPE_PROXY_MASK
Definition: globus_gsi_cert_utils_constants.h:119
GLOBUS_GSI_CERT_UTILS_ERROR_UNEXPECTED_FORMAT
Definition: globus_gsi_cert_utils_constants.h:56
GLOBUS_GSI_CERT_UTILS_TYPE_GSI_2_PROXY
Definition: globus_gsi_cert_utils_constants.h:151
GLOBUS_GSI_CERT_UTILS_TYPE_GSI_3_LIMITED_PROXY
Definition: globus_gsi_cert_utils_constants.h:141
GLOBUS_GSI_CERT_UTILS_TYPE_GSI_3
Definition: globus_gsi_cert_utils_constants.h:96