Loading...
Searching...
No Matches
globus_error_openssl.h
Go to the documentation of this file.
/*
* Copyright 1999-2013 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_INCLUDE_OPENSSL_ERROR_H
#define GLOBUS_INCLUDE_OPENSSL_ERROR_H
#ifndef GLOBUS_GLOBAL_DOCUMENT_SET
#endif
#include "globus_common.h"
#include "globus_error_generic.h"
#include "openssl/err.h"
#ifdef __cplusplus
extern "C" {
#endif
#define GLOBUS_GSI_OPENSSL_ERROR_MODULE (&globus_i_gsi_openssl_error_module)
extern
globus_module_descriptor_t globus_i_gsi_openssl_error_module;
#define GLOBUS_ERROR_TYPE_OPENSSL \
(&GLOBUS_ERROR_TYPE_OPENSSL_DEFINITION)
extern const globus_object_type_t GLOBUS_ERROR_TYPE_OPENSSL_DEFINITION;
#define _GOESL(s) globus_common_i18n_get_string(\
GLOBUS_GSI_OPENSSL_ERROR_MODULE, \
s)
typedef struct globus_l_openssl_error_handle_s *
globus_openssl_error_handle_t;
unsigned long
globus_openssl_error_handle_get_error_code(
globus_openssl_error_handle_t error_code);
const char *
globus_openssl_error_handle_get_filename(
globus_openssl_error_handle_t handle);
int
globus_openssl_error_handle_get_linenumber(
globus_openssl_error_handle_t handle);
const char *
globus_openssl_error_handle_get_library(
globus_openssl_error_handle_t handle);
const char *
globus_openssl_error_handle_get_function(
globus_openssl_error_handle_t handle);
const char *
globus_openssl_error_handle_get_reason(
globus_openssl_error_handle_t handle);
const char *
globus_openssl_error_handle_get_data(
globus_openssl_error_handle_t handle);
int
globus_openssl_error_handle_get_data_flags(
globus_openssl_error_handle_t handle);
globus_object_t *
globus_error_construct_openssl_error(
globus_module_descriptor_t * base_source,
globus_object_t * base_cause);
globus_object_t *
globus_error_initialize_openssl_error(
globus_object_t * error,
globus_module_descriptor_t * base_source,
globus_object_t * base_cause,
globus_openssl_error_handle_t openssl_error_handle);
globus_object_t *
globus_error_wrap_openssl_error(
globus_module_descriptor_t * base_source,
int error_type,
const char * source_file,
const char * source_func,
int source_line,
const char * format,
...);
globus_bool_t
globus_error_match_openssl_error(
globus_object_t * error,
unsigned long library,
unsigned long function,
unsigned long reason);
const char *
globus_error_openssl_error_get_filename(
globus_object_t * error);
int
globus_error_openssl_error_get_linenumber(
globus_object_t * error);
const char *
globus_error_openssl_error_get_library(
globus_object_t * error);
const char *
globus_error_openssl_error_get_function(
globus_object_t * error);
const char *
globus_error_openssl_error_get_reason(
globus_object_t * error);
const char *
globus_error_openssl_error_get_data(
globus_object_t * error);
int
globus_error_openssl_error_get_data_flags(
globus_object_t * error);
#ifdef __cplusplus
}
#endif
#endif /* GLOBUS_INCLUDE_OPENSSL_ERROR_H */
globus_error_openssl_error_get_linenumber
int globus_error_openssl_error_get_linenumber(globus_object_t *error)
Definition globus_error_openssl.c:579
globus_error_openssl_error_get_function
const char * globus_error_openssl_error_get_function(globus_object_t *error)
Definition globus_error_openssl.c:671
globus_error_openssl_error_get_reason
const char * globus_error_openssl_error_get_reason(globus_object_t *error)
Definition globus_error_openssl.c:717
globus_error_openssl_error_get_filename
const char * globus_error_openssl_error_get_filename(globus_object_t *error)
Definition globus_error_openssl.c:532
globus_error_openssl_error_get_data_flags
int globus_error_openssl_error_get_data_flags(globus_object_t *error)
Definition globus_error_openssl.c:809
globus_error_openssl_error_get_data
const char * globus_error_openssl_error_get_data(globus_object_t *error)
Definition globus_error_openssl.c:763
globus_error_openssl_error_get_library
const char * globus_error_openssl_error_get_library(globus_object_t *error)
Definition globus_error_openssl.c:625
globus_openssl_error_handle_get_filename
const char * globus_openssl_error_handle_get_filename(globus_openssl_error_handle_t handle)
Definition globus_error_openssl.c:242
globus_openssl_error_handle_get_error_code
unsigned long globus_openssl_error_handle_get_error_code(globus_openssl_error_handle_t error_code)
Definition globus_error_openssl.c:144
globus_openssl_error_handle_get_linenumber
int globus_openssl_error_handle_get_linenumber(globus_openssl_error_handle_t handle)
Definition globus_error_openssl.c:276
globus_error_construct_openssl_error
globus_object_t * globus_error_construct_openssl_error(globus_module_descriptor_t *base_source, globus_object_t *base_cause)
Definition globus_error_openssl.c:433
globus_openssl_error_handle_get_data
const char * globus_openssl_error_handle_get_data(globus_openssl_error_handle_t handle)
Definition globus_error_openssl.c:176
globus_openssl_error_handle_get_data_flags
int globus_openssl_error_handle_get_data_flags(globus_openssl_error_handle_t handle)
Definition globus_error_openssl.c:208
globus_error_initialize_openssl_error
globus_object_t * globus_error_initialize_openssl_error(globus_object_t *error, globus_module_descriptor_t *base_source, globus_object_t *base_cause, globus_openssl_error_handle_t openssl_error_handle)
Definition globus_error_openssl.c:503
globus_openssl_error_handle_get_library
const char * globus_openssl_error_handle_get_library(globus_openssl_error_handle_t handle)
Definition globus_error_openssl.c:310
globus_openssl_error_handle_get_reason
const char * globus_openssl_error_handle_get_reason(globus_openssl_error_handle_t handle)
Definition globus_error_openssl.c:379
globus_openssl_error_handle_get_function
const char * globus_openssl_error_handle_get_function(globus_openssl_error_handle_t handle)
Definition globus_error_openssl.c:345
globus_error_match_openssl_error
globus_bool_t globus_error_match_openssl_error(globus_object_t *error, unsigned long library, unsigned long function, unsigned long reason)
Definition globus_error_openssl.c:867
globus_error_wrap_openssl_error
globus_object_t * globus_error_wrap_openssl_error(globus_module_descriptor_t *base_source, int error_type, const char *source_file, const char *source_func, int source_line, const char *format,...)
Definition globus_error_openssl.c:947