Grid Community Toolkit  6.2.1550507116
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 
51 #include "globus_common.h"
52 #include "globus_error_generic.h"
53 #include "openssl/err.h"
54 
55 #ifdef __cplusplus
56 extern "C" {
57 #endif
58 
94 #define GLOBUS_GSI_OPENSSL_ERROR_MODULE (&globus_i_gsi_openssl_error_module)
95 
96 extern
97 globus_module_descriptor_t globus_i_gsi_openssl_error_module;
98 
99 
104 #define GLOBUS_ERROR_TYPE_OPENSSL \
105  (&GLOBUS_ERROR_TYPE_OPENSSL_DEFINITION)
106 
107 extern const globus_object_type_t GLOBUS_ERROR_TYPE_OPENSSL_DEFINITION;
108 
109 #define _GOESL(s) globus_common_i18n_get_string(\
110  GLOBUS_GSI_OPENSSL_ERROR_MODULE, \
111  s)
112 
124 typedef struct globus_l_openssl_error_handle_s *
125  globus_openssl_error_handle_t;
126 
127 unsigned long
129  globus_openssl_error_handle_t error_code);
130 
131 const char *
133  globus_openssl_error_handle_t handle);
134 
135 int
137  globus_openssl_error_handle_t handle);
138 
139 const char *
141  globus_openssl_error_handle_t handle);
142 
143 const char *
145  globus_openssl_error_handle_t handle);
146 
147 const char *
149  globus_openssl_error_handle_t handle);
150 
151 const char *
153  globus_openssl_error_handle_t handle);
154 
155 int
157  globus_openssl_error_handle_t handle);
158 
159 
160 globus_object_t *
162  globus_module_descriptor_t * base_source,
163  globus_object_t * base_cause);
164 
165 globus_object_t *
167  globus_object_t * error,
168  globus_module_descriptor_t * base_source,
169  globus_object_t * base_cause,
170  globus_openssl_error_handle_t openssl_error_handle);
171 
183 globus_object_t *
185  globus_module_descriptor_t * base_source,
186  int error_type,
187  const char * source_file,
188  const char * source_func,
189  int source_line,
190  const char * format,
191  ...);
192 
195  globus_object_t * error,
196  unsigned long library,
197  unsigned long function,
198  unsigned long reason);
199 
200 const char *
202  globus_object_t * error);
203 
204 int
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 const char *
222  globus_object_t * error);
223 
224 int
226  globus_object_t * error);
227 
228 #ifdef __cplusplus
229 }
230 #endif
231 
232 #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:71