Grid Community Toolkit  6.2.1541705016
globus_error_openssl.h
Go to the documentation of this file.
1 /*
2  * Copyright 1999-2013 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_INCLUDE_OPENSSL_ERROR_H
18 #define GLOBUS_INCLUDE_OPENSSL_ERROR_H
19 
24 #ifndef GLOBUS_GLOBAL_DOCUMENT_SET
25 
29 #endif
30 
50 #include "globus_common.h"
51 #include "globus_error_generic.h"
52 #include "openssl/err.h"
53 
54 #ifdef __cplusplus
55 extern "C" {
56 #endif
57 
92 #define GLOBUS_GSI_OPENSSL_ERROR_MODULE (&globus_i_gsi_openssl_error_module)
93 
94 extern
95 globus_module_descriptor_t globus_i_gsi_openssl_error_module;
96 
97 
102 #define GLOBUS_ERROR_TYPE_OPENSSL \
103  (&GLOBUS_ERROR_TYPE_OPENSSL_DEFINITION)
104 
105 extern const globus_object_type_t GLOBUS_ERROR_TYPE_OPENSSL_DEFINITION;
106 
107 #define _GOESL(s) globus_common_i18n_get_string(\
108  GLOBUS_GSI_OPENSSL_ERROR_MODULE, \
109  s)
110 
121 typedef struct globus_l_openssl_error_handle_s *
122  globus_openssl_error_handle_t;
123 
124 unsigned long
126  globus_openssl_error_handle_t error_code);
127 
128 const char *
130  globus_openssl_error_handle_t handle);
131 
132 int
134  globus_openssl_error_handle_t handle);
135 
136 const char *
138  globus_openssl_error_handle_t handle);
139 
140 const char *
142  globus_openssl_error_handle_t handle);
143 
144 const char *
146  globus_openssl_error_handle_t handle);
147 
148 const char *
150  globus_openssl_error_handle_t handle);
151 
152 int
154  globus_openssl_error_handle_t handle);
155 
156 
157 globus_object_t *
159  globus_module_descriptor_t * base_source,
160  globus_object_t * base_cause);
161 
162 globus_object_t *
164  globus_object_t * error,
165  globus_module_descriptor_t * base_source,
166  globus_object_t * base_cause,
167  globus_openssl_error_handle_t openssl_error_handle);
168 
179 globus_object_t *
181  globus_module_descriptor_t * base_source,
182  int error_type,
183  const char * source_file,
184  const char * source_func,
185  int source_line,
186  const char * format,
187  ...);
188 
191  globus_object_t * error,
192  unsigned long library,
193  unsigned long function,
194  unsigned long reason);
195 
196 const char *
198  globus_object_t * error);
199 
200 int
202  globus_object_t * error);
203 
204 const char *
206  globus_object_t * error);
207 
208 const char *
210  globus_object_t * error);
211 
212 const char *
214  globus_object_t * error);
215 
216 const char *
218  globus_object_t * error);
219 
220 int
222  globus_object_t * error);
223 
224 #ifdef __cplusplus
225 }
226 #endif
227 
228 #endif /* GLOBUS_INCLUDE_OPENSSL_ERROR_H */
const char * globus_error_openssl_error_get_reason(globus_object_t *error)
Definition: globus_error_openssl.c:717
int globus_openssl_error_handle_get_linenumber(globus_openssl_error_handle_t handle)
Definition: globus_error_openssl.c:276
const char * globus_error_openssl_error_get_data(globus_object_t *error)
Definition: globus_error_openssl.c:763
const char * globus_openssl_error_handle_get_filename(globus_openssl_error_handle_t handle)
Definition: globus_error_openssl.c:242
int globus_bool_t
Boolean type.
Definition: globus_types.h:93
int globus_error_openssl_error_get_data_flags(globus_object_t *error)
Definition: globus_error_openssl.c:809
const char * globus_openssl_error_handle_get_reason(globus_openssl_error_handle_t handle)
Definition: globus_error_openssl.c:379
const char * globus_error_openssl_error_get_function(globus_object_t *error)
Definition: globus_error_openssl.c:671
const char * globus_openssl_error_handle_get_data(globus_openssl_error_handle_t handle)
Definition: globus_error_openssl.c:176
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
const char * globus_error_openssl_error_get_filename(globus_object_t *error)
Definition: globus_error_openssl.c:532
int globus_error_openssl_error_get_linenumber(globus_object_t *error)
Definition: globus_error_openssl.c:579
const char * globus_openssl_error_handle_get_function(globus_openssl_error_handle_t handle)
Definition: globus_error_openssl.c:345
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:944
const char * globus_error_openssl_error_get_library(globus_object_t *error)
Definition: globus_error_openssl.c:625
const char * globus_openssl_error_handle_get_library(globus_openssl_error_handle_t handle)
Definition: globus_error_openssl.c:310
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
Headers common to all of Globus.
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
int globus_openssl_error_handle_get_data_flags(globus_openssl_error_handle_t handle)
Definition: globus_error_openssl.c:208
Globus Error API.
unsigned long globus_openssl_error_handle_get_error_code(globus_openssl_error_handle_t error_code)
Definition: globus_error_openssl.c:144
Module Descriptor.
Definition: globus_module.h:69