Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

globus_openssl_error_utility(3) [debian man page]

Error Helper Functions(3)				     globus gsi openssl error					 Error Helper Functions(3)

NAME
Error Helper Functions - OpenSSL Error Match globus_bool_t globus_error_match_openssl_error (globus_object_t *error, unsigned long library, unsigned long function, unsigned long reason) 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,...) Detailed Description Utility functions that deal with Globus OpenSSL Error objects. This section defines utility function for Globus OpenSSL Error objects. Function Documentation globus_bool_t globus_error_match_openssl_error (globus_object_t *error, unsigned longlibrary, unsigned longfunction, unsigned longreason) Check whether the error originated from a specific library, from a specific function and is of a specific type. This function checks whether the error or any of it's causative errors originated from a specific library, specific function and is of a specific type. Parameters: error The error object for which to perform the check library The library to check for function The function to check for reason The type to check for Returns: GLOBUS_TRUE - the error matched GLOBUS_FALSE - the error failed to match globus_object_t* globus_error_wrap_openssl_error (globus_module_descriptor_t *base_source, interror_type, const char *source_file, const char *source_func, intsource_line, const char *format, ...) Wrap the OpenSSL error and create a wrapped globus error object from the error. This function gets all the openssl errors from the error list, and chains them using the globus error string object. The resulting globus error object is a wrapper to the openssl error at the end of the chain. Parameters: base_source The module that the error was generated from error_type The type of error encapsulating the openssl error source_file Name of file. Use __FILE__ source_func Name of function. Use _globus_func_name and declare your func with GlobusFuncName(<name>) source_line Line number. Use __LINE__ format format string for the description of the error entry point where the openssl error occurred, should be followed by parameters to fill the format string (like in printf). Returns: The globus error object. A globus_result_t object can be created using the globus_error_put function See also: globus_error_put() Author Generated automatically by Doxygen for globus gsi openssl error from the source code. Version 2.1 Wed Jan 25 2012 Error Helper Functions(3)

Check Out this Related Man Page

Error Handling Helpers(3)					   globus common					 Error Handling Helpers(3)

NAME
Error Handling Helpers - Error Match globus_bool_t globus_error_match (globus_object_t *error, globus_module_descriptor_t *module, int type) Print Error Chain char * globus_error_print_chain (globus_object_t *error) Print User Friendly Error Message char * globus_error_print_friendly (globus_object_t *error) Detailed Description Helper functions for dealing with Globus Generic Error objects. This section defines utility functions for dealing with Globus Generic Error objects. Function Documentation globus_bool_t globus_error_match (globus_object_t *error, globus_module_descriptor_t *module, inttype) Check whether the error originated from a specific module and is of a specific type. This function checks whether the error or any of it's causative errors originated from a specific module and is of a specific type. If the module descriptor is left unspecified this function will check for any error of the specified type and vice versa. Parameters: error The error object for which to perform the check module The module descriptor to check for type The type to check for Returns: GLOBUS_TRUE - the error matched the module and type GLOBUS_FALSE - the error failed to match the module and type char* globus_error_print_chain (globus_object_t *error) Return a string containing all printable errors found in a error object and it's causative error chain. If the GLOBUS_ERROR_VERBOSE env is set, file, line and function info will also be printed (where available). Otherwise, only the module name will be printed. Parameters: error The error to print Returns: A string containing all printable errors. This string needs to be freed by the user of this function. char* globus_error_print_friendly (globus_object_t *error) Return a string containing error messages from the top 1 and bottom 3 objects, and, if found, show a friendly error message. The error chain will be searched from top to bottom until a friendly handler is found and a friendly message is created. If the GLOBUS_ERROR_VERBOSE env is set, then the result from globus_error_print_chain() will be used. Parameters: error The error to print Returns: A string containing a friendly error message. This string needs to be freed by the user of this function. Author Generated automatically by Doxygen for globus common from the source code. Version 14.7 Tue Nov 27 2012 Error Handling Helpers(3)
Man Page