17 #ifndef GLOBUS_DONT_DOCUMENT_INTERNAL
35 extern int globus_i_gsi_authz_debug_level;
36 extern FILE * globus_i_gsi_authz_debug_fstream;
38 #define GLOBUS_I_GSI_AUTHZ_DEBUG(_LEVEL_) \
39 (globus_i_gsi_authz_debug_level >= (_LEVEL_))
41 #define GLOBUS_I_GSI_AUTHZ_DEBUG_FPRINTF(_LEVEL_, _MESSAGE_) \
43 if (GLOBUS_I_GSI_AUTHZ_DEBUG(_LEVEL_)) \
45 globus_libc_fprintf _MESSAGE_; \
50 #define GLOBUS_I_GSI_AUTHZ_DEBUG_FNPRINTF(_LEVEL_, _MESSAGE_) \
52 if (GLOBUS_I_GSI_AUTHZ_DEBUG(_LEVEL_)) \
55 globus_common_create_nstring _MESSAGE_; \
56 globus_libc_fprintf(globus_i_gsi_authz_debug_fstream, \
58 globus_libc_free(_tmp_str_); \
62 #define GLOBUS_I_GSI_AUTHZ_DEBUG_PRINT(_LEVEL_, _MESSAGE_) \
64 if (GLOBUS_I_GSI_AUTHZ_DEBUG(_LEVEL_)) \
66 globus_libc_fprintf(globus_i_gsi_authz_debug_fstream, _MESSAGE_); \
70 #define GLOBUS_I_GSI_AUTHZ_DEBUG_PRINT_OBJECT(_LEVEL_, _OBJ_NAME_, _OBJ_) \
72 if (GLOBUS_I_GSI_AUTHZ_DEBUG(_LEVEL_)) \
74 pp _OBJ_NAME_##_print_fp(globus_i_gsi_authz_debug_fstream, _OBJ_); \
80 #define GLOBUS_I_GSI_AUTHZ_DEBUG_FPRINTF(_LEVEL_, _MESSAGE_) {}
81 #define GLOBUS_I_GSI_AUTHZ_DEBUG_FNPRINTF(_LEVEL_, _MESSAGE_) {}
82 #define GLOBUS_I_GSI_AUTHZ_DEBUG_PRINT(_LEVEL_, _MESSAGE_) {}
83 #define GLOBUS_I_GSI_AUTHZ_DEBUG_PRINT_OBJECT(_LEVEL_, _OBJ_NAME_, _OBJ_) {}
87 #define GLOBUS_I_GSI_AUTHZ_DEBUG_ENTER \
88 GLOBUS_I_GSI_AUTHZ_DEBUG_FPRINTF( \
89 2, (globus_i_gsi_authz_debug_fstream, \
90 "%s entering\n", _function_name_))
92 #define GLOBUS_I_GSI_AUTHZ_DEBUG_EXIT \
93 GLOBUS_I_GSI_AUTHZ_DEBUG_FPRINTF( \
94 2, (globus_i_gsi_authz_debug_fstream, \
95 "%s exiting\n", _function_name_))
101 extern char * globus_l_gsi_authz_error_strings[];
103 #define GLOBUS_GSI_AUTH_HANDLE_MALLOC_ERROR(_LENGTH_) \
104 globus_error_put(globus_error_wrap_errno_error( \
105 GLOBUS_GSI_AUTHZ_MODULE, \
107 GLOBUS_GSI_AUTHZ_ERROR_ERRNO, \
111 "Could not allocate enough memory: %d bytes", \
115 #define GLOBUS_GSI_AUTHZ_ERROR_NULL_VALUE(_WHAT_) \
116 globus_error_put(globus_error_construct_error( \
117 GLOBUS_GSI_AUTHZ_MODULE, \
119 GLOBUS_GSI_AUTHZ_ERROR_BAD_PARAMETER, \
124 globus_l_gsi_authz_error_strings[GLOBUS_GSI_AUTHZ_ERROR_BAD_PARAMETER]\
127 #define GLOBUS_GSI_AUTHZ_ERROR_WITH_CALLOUT(_RESULT_) \
128 globus_error_put(globus_error_construct_error( \
129 GLOBUS_GSI_AUTHZ_MODULE, \
130 globus_error_get(_RESULT_), \
131 GLOBUS_GSI_AUTHZ_ERROR_CALLOUT, \
136 globus_l_gsi_authz_error_strings[GLOBUS_GSI_AUTHZ_ERROR_CALLOUT]))
138 typedef struct globus_l_gsi_authz_cb_arg_s
140 globus_gsi_authz_handle_t handle;
142 globus_gsi_authz_cb_t callback;
143 } globus_l_gsi_authz_cb_arg_t;
Error Object Containing a String.
Reference Counting Module Activation and Deactivation.
Globus GSI Authorization Library Constants.
Headers common to all of Globus.