17 #ifndef GLOBUS_DONT_DOCUMENT_INTERNAL 25 #ifndef GLOBUS_I_GSI_SYSTEM_CONFIG_H 26 #define GLOBUS_I_GSI_SYSTEM_CONFIG_H 29 #include "globus_i_gsi_sysconfig_config.h" 33 #define _GSSL(s) globus_common_i18n_get_string(\ 34 GLOBUS_GSI_SYSCONFIG_MODULE,\ 39 extern int globus_i_gsi_sysconfig_debug_level;
40 extern FILE * globus_i_gsi_sysconfig_debug_fstream;
44 #define GLOBUS_I_GSI_SYSCONFIG_DEBUG(_LEVEL_) \ 45 (globus_i_gsi_sysconfig_debug_level >= (_LEVEL_)) 47 #define GLOBUS_I_GSI_SYSCONFIG_DEBUG_FPRINTF(_LEVEL_, _MESSAGE_) \ 49 if (GLOBUS_I_GSI_SYSCONFIG_DEBUG(_LEVEL_)) \ 51 globus_libc_fprintf _MESSAGE_; \ 55 #define GLOBUS_I_GSI_SYSCONFIG_DEBUG_FNPRINTF(_LEVEL_, _MESSAGE_) \ 57 if (GLOBUS_I_GSI_SYSCONFIG_DEBUG(_LEVEL_)) \ 60 globus_common_create_nstring _MESSAGE_; \ 61 globus_libc_fprintf(globus_i_gsi_sysconfig_debug_fstream, \ 63 globus_libc_free(_tmp_str_); \ 67 #define GLOBUS_I_GSI_SYSCONFIG_DEBUG_PRINT(_LEVEL_, _MESSAGE_) \ 69 if (GLOBUS_I_GSI_SYSCONFIG_DEBUG(_LEVEL_)) \ 71 globus_libc_fprintf(globus_i_gsi_sysconfig_debug_fstream, \ 76 #define GLOBUS_I_GSI_SYSCONFIG_DEBUG_PRINT_OBJECT(_LEVEL_, _OBJ_NAME_, _OBJ_) \ 78 if (GLOBUS_I_GSI_SYSCONFIG_DEBUG(_LEVEL_)) \ 80 _OBJ_NAME_##_print_fp(globus_i_gsi_sysconfig_debug_fstream, \ 87 #define GLOBUS_I_GSI_SYSCONFIG_DEBUG_FPRINTF(_LEVEL_, _MESSAGE_) {} 88 #define GLOBUS_I_GSI_SYSCONFIG_DEBUG_FNPRINTF(_LEVEL_, _MESSAGE_) {} 89 #define GLOBUS_I_GSI_SYSCONFIG_DEBUG_PRINT(_LEVEL_, _MESSAGE_) {} 90 #define GLOBUS_I_GSI_SYSCONFIG_DEBUG_PRINT_OBJECT(_LEVEL_, \ 95 #define GLOBUS_I_GSI_SYSCONFIG_DEBUG_ENTER \ 96 GLOBUS_I_GSI_SYSCONFIG_DEBUG_FPRINTF( \ 97 1, (globus_i_gsi_sysconfig_debug_fstream, \ 98 "%s entering\n", __func__)) 100 #define GLOBUS_I_GSI_SYSCONFIG_DEBUG_EXIT \ 101 GLOBUS_I_GSI_SYSCONFIG_DEBUG_FPRINTF( \ 102 2, (globus_i_gsi_sysconfig_debug_fstream, \ 103 "%s exiting\n", __func__)) 107 #define GLOBUS_GSI_SYSCONFIG_OPENSSL_ERROR_RESULT(_RESULT_, \ 112 globus_common_create_string _ERRSTR_; \ 113 _RESULT_ = globus_i_gsi_sysconfig_openssl_error_result(_ERRORTYPE_, \ 119 globus_libc_free(_tmp_str_); \ 122 #define GLOBUS_GSI_SYSCONFIG_ERROR_RESULT(_RESULT_, _ERRORTYPE_, _ERRSTR_) \ 125 globus_common_create_string _ERRSTR_; \ 126 _RESULT_ = globus_i_gsi_sysconfig_error_result(_ERRORTYPE_, \ 132 globus_libc_free(_tmp_str_); \ 135 #define GLOBUS_GSI_SYSCONFIG_ERROR_CHAIN_RESULT(_TOP_RESULT_, _ERRORTYPE_) \ 136 _TOP_RESULT_ = globus_i_gsi_sysconfig_error_chain_result(_TOP_RESULT_, \ 144 #define GLOBUS_GSI_SYSCONFIG_OPENSSL_LONG_ERROR_RESULT(_RESULT_, \ 150 globus_common_create_string _ERRSTR_; \ 151 _RESULT_ = globus_i_gsi_sysconfig_openssl_error_result(_ERRORTYPE_, \ 157 globus_libc_free(_tmp_str_); \ 160 #define GLOBUS_GSI_SYSCONFIG_LONG_ERROR_RESULT(_RESULT_, \ 166 globus_common_create_string _ERRSTR_; \ 167 _RESULT_ = globus_i_gsi_sysconfig_error_result(_ERRORTYPE_, \ 173 globus_libc_free(_tmp_str_); \ 176 #define GLOBUS_GSI_SYSCONFIG_LONG_ERROR_CHAIN_RESULT(_TOP_RESULT_, \ 179 _TOP_RESULT_ = globus_i_gsi_sysconfig_error_chain_result(_TOP_RESULT_, \ 187 #define GLOBUS_GSI_SYSCONFIG_FILE_DOES_NOT_EXIST(_RESULT) \ 188 (globus_error_match(globus_error_peek(_RESULT), \ 189 GLOBUS_GSI_SYSCONFIG_MODULE, \ 190 GLOBUS_GSI_SYSCONFIG_ERROR_FILE_DOES_NOT_EXIST) == \ 193 #define GLOBUS_GSI_SYSCONFIG_FILE_HAS_BAD_PERMISSIONS(_RESULT) \ 194 (globus_error_match(globus_error_peek(_RESULT), \ 195 GLOBUS_GSI_SYSCONFIG_MODULE, \ 196 GLOBUS_GSI_SYSCONFIG_ERROR_FILE_BAD_PERMISSIONS) == \ 199 #define GLOBUS_GSI_SYSCONFIG_FILE_ZERO_LENGTH(_RESULT) \ 200 (globus_error_match(globus_error_peek(_RESULT), \ 201 GLOBUS_GSI_SYSCONFIG_MODULE, \ 202 GLOBUS_GSI_SYSCONFIG_ERROR_FILE_ZERO_LENGTH) == \ 205 extern char * globus_l_gsi_sysconfig_error_strings[];
206 extern char * globus_l_gsi_sysconfig_status_strings[];
209 globus_i_gsi_sysconfig_create_cert_dir_string(
211 char ** cert_dir_value,
216 globus_i_gsi_sysconfig_create_cert_string(
218 char ** cert_string_value,
223 globus_i_gsi_sysconfig_create_key_string(
225 char ** key_string_value,
230 globus_i_gsi_sysconfig_error_chain_result(
233 const char * filename,
234 const char * function_name,
236 const char * short_desc,
237 const char * long_desc);
240 globus_i_gsi_sysconfig_error_result(
242 const char * filename,
243 const char * function_name,
245 const char * short_desc,
246 const char * long_desc);
249 globus_i_gsi_sysconfig_openssl_error_result(
251 const char * filename,
252 const char * function_name,
254 const char * short_desc,
255 const char * long_desc);
Globus GSI System Config Library.
Headers common to all of Globus.
Globus GSI System Config Library.
uint32_t globus_result_t
Definition: globus_types.h:99