/usr/include/globus/globus_gsi_callback.h is in libglobus-gsi-callback-dev 5.13-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 | /*
* 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_GSI_CALLBACK_H
#define GLOBUS_GSI_CALLBACK_H
/**
* @file globus_gsi_callback.h
* @brief Globus GSI Callback
* @author Sam Lang
* @author Sam Meder
*/
#include "globus_common.h"
#include "globus_gsi_cert_utils.h"
#include "openssl/x509.h"
#ifndef GLOBUS_GLOBAL_DOCUMENT_SET
/**
* @mainpage Globus GSI Callback
* @copydoc globus_gsi_callback
*/
#endif
/**
* @defgroup globus_gsi_callback Globus GSI Callback
*
* The Globus GSI Callback library. This library contains functions that extend
* OpenSSL path validation.
*
* - @ref globus_gsi_callback_activation
* - @ref globus_gsi_callback_functions
* - @ref globus_gsi_callback_data
*/
/**
* @defgroup globus_gsi_callback_activation Activation
* @ingroup globus_gsi_callback
*
* Globus GSI Callback uses standard Globus module activation and
* deactivation. Before any Globus GSI Callback functions are called, the
* following function must be called:
*
* @code
* globus_module_activate(GLOBUS_GSI_CALLBACK_MODULE)
* @endcode
*
*
* This function returns GLOBUS_SUCCESS if Globus GSI Callback was
* successfully initialized, and you are therefore allowed to
* subsequently call Globus GSI Callback functions. Otherwise, an error
* code is returned, and Globus GSI Credential functions should not be
* subsequently called. This function may be called multiple times.
*
* To deactivate Globus GSI Callback, the following function must be called:
*
* @code
* globus_module_deactivate(GLOBUS_GSI_CALLBACK_MODULE)
* @endcode
*
* This function should be called once for each time Globus GSI Callback
* was activated.
*
*/
#ifdef __cplusplus
extern "C" {
#endif
/**
* Module descriptor
* @ingroup globus_gsi_callback_activation
* @hideinitializer
*/
#define GLOBUS_GSI_CALLBACK_MODULE (&globus_i_gsi_callback_module)
extern
globus_module_descriptor_t globus_i_gsi_callback_module;
#define _CLS(s) globus_common_i18n_get_string(GLOBUS_GSI_CALLBACK_MODULE,\
s)
/**
* @defgroup globus_gsi_callback_functions Callback Functions
* @ingroup globus_gsi_callback
*
* Functions that plug into various plug points in the OpenSSL path validation
* mechanism. These functions add CRL checking, X509 Extension handling and
* proxy validation.
*/
/**
* @defgroup globus_gsi_callback_data Callback Data Functions
* @ingroup globus_gsi_callback
*
* Functions that deal with the data structure that contains state associated
* with the path validation callback.
*/
/**
* Callback data typedef
* @ingroup globus_gsi_callback_data
*/
typedef struct globus_l_gsi_callback_data_s *
globus_gsi_callback_data_t;
/**
* Typedef for a callback that may be registered for dealing with unhandled X.509 extension
* @ingroup globus_gsi_callback
*/
typedef int (*globus_gsi_extension_callback_t)(
globus_gsi_callback_data_t callback_data,
X509_EXTENSION * extension);
#ifndef DOXYGEN
globus_result_t
globus_gsi_callback_get_X509_STORE_callback_data_index(
int * index);
globus_result_t
globus_gsi_callback_get_SSL_callback_data_index(
int * index);
int
globus_gsi_callback_create_proxy_callback(
int preverify_ok,
X509_STORE_CTX * x509_context);
int
globus_gsi_callback_handshake_callback(
int preverify_ok,
X509_STORE_CTX * x509_context);
int globus_gsi_callback_check_issued(
X509_STORE_CTX * context,
X509 * cert,
X509 * issuer);
int
globus_gsi_callback_X509_verify_cert(
X509_STORE_CTX * context,
void * arg);
globus_result_t
globus_gsi_callback_data_init(
globus_gsi_callback_data_t * callback_data);
globus_result_t
globus_gsi_callback_data_destroy(
globus_gsi_callback_data_t callback_data);
globus_result_t
globus_gsi_callback_data_copy(
globus_gsi_callback_data_t source,
globus_gsi_callback_data_t * dest);
globus_result_t
globus_gsi_callback_get_cert_depth(
globus_gsi_callback_data_t callback_data,
int * cert_depth);
globus_result_t
globus_gsi_callback_set_cert_depth(
globus_gsi_callback_data_t callback_data,
int cert_depth);
globus_result_t
globus_gsi_callback_get_proxy_depth(
globus_gsi_callback_data_t callback_data,
int * proxy_depth);
globus_result_t
globus_gsi_callback_set_proxy_depth(
globus_gsi_callback_data_t callback_data,
int proxy_depth);
globus_result_t
globus_gsi_callback_set_cert_type(
globus_gsi_callback_data_t callback_data,
globus_gsi_cert_utils_cert_type_t cert_type);
globus_result_t
globus_gsi_callback_get_cert_type(
globus_gsi_callback_data_t callback_data,
globus_gsi_cert_utils_cert_type_t * cert_type);
globus_result_t
globus_gsi_callback_get_cert_chain(
globus_gsi_callback_data_t callback_data,
STACK_OF(X509) ** cert_chain);
globus_result_t
globus_gsi_callback_set_cert_chain(
globus_gsi_callback_data_t callback_data,
STACK_OF(X509) * cert_chain);
globus_result_t
globus_gsi_callback_get_multiple_limited_proxy_ok(
globus_gsi_callback_data_t callback_data,
int * multiple_limited_proxy_ok);
globus_result_t
globus_gsi_callback_set_multiple_limited_proxy_ok(
globus_gsi_callback_data_t callback_data,
int multiple_limited_proxy_ok);
globus_result_t
globus_gsi_callback_get_extension_oids(
globus_gsi_callback_data_t callback_data,
void ** extension_oids);
globus_result_t
globus_gsi_callback_set_extension_oids(
globus_gsi_callback_data_t callback_data,
void * extension_oids);
globus_result_t
globus_gsi_callback_get_cert_dir(
globus_gsi_callback_data_t callback_data,
char ** cert_dir);
globus_result_t
globus_gsi_callback_set_cert_dir(
globus_gsi_callback_data_t callback_data,
char * cert_dir);
globus_result_t
globus_gsi_callback_get_goodtill(
globus_gsi_callback_data_t callback_data,
time_t * goodtill);
globus_result_t
globus_gsi_callback_set_goodtill(
globus_gsi_callback_data_t callback_data,
time_t goodtill);
globus_result_t
globus_gsi_callback_get_extension_cb(
globus_gsi_callback_data_t callback_data,
globus_gsi_extension_callback_t * extension_cb);
globus_result_t
globus_gsi_callback_set_extension_cb(
globus_gsi_callback_data_t callback_data,
globus_gsi_extension_callback_t extension_cb);
globus_result_t
globus_gsi_callback_get_error(
globus_gsi_callback_data_t callback_data,
globus_result_t * error);
globus_result_t
globus_gsi_callback_set_error(
globus_gsi_callback_data_t callback_data,
globus_result_t error);
globus_result_t
globus_gsi_callback_get_check_policy_for_self_signed_certs(
globus_gsi_callback_data_t callback_data,
globus_bool_t * check);
globus_result_t
globus_gsi_callback_set_check_policy_for_self_signed_certs(
globus_gsi_callback_data_t callback_data,
globus_bool_t check);
globus_result_t
globus_gsi_callback_get_allow_missing_signing_policy(
globus_gsi_callback_data_t callback_data,
globus_bool_t * allow);
globus_result_t
globus_gsi_callback_set_allow_missing_signing_policy(
globus_gsi_callback_data_t callback_data,
globus_bool_t allow);
#endif /* DOXYGEN */
#ifdef __cplusplus
}
#endif
#endif /* GLOBUS_GSI_CALLBACK_H */
|