GLOBUS_OPENSSL_ERROR_HANDLE_GET_REASON(3)
π globus_openssl_error_object β Globus OpenSSL Error Object π
okay so bestie, welcome to the <pink>globus_ope...rror_object(3)</pink> page from the Library Functions Manual π
this is a Globus OpenSSL Error Object and we're gonna get you fluent in it, no cap.
β¨ NAME β¨
globus_openssl_error_object β Globus OpenSSL Error Object πΈ
- Globus OpenSSL Error Object.
π¦ SYNOPSIS π¦
π Macros π
#define GLOBUS_ERROR_TYPE_OPENSSL
π Functions π
unsigned long globus_openssl_error_handle_get_error_code
(globus_openssl_error_handle_t handle)
const char * globus_openssl_error_handle_get_data
(globus_openssl_error_handle_t handle)
int globus_openssl_error_handle_get_data_flags
(globus_openssl_error_handle_t handle)
const char * globus_openssl_error_handle_get_filename
(globus_openssl_error_handle_t handle)
int globus_openssl_error_handle_get_linenumber
(globus_openssl_error_handle_t handle)
const char * globus_openssl_error_handle_get_library
(globus_openssl_error_handle_t handle)
const char * globus_openssl_error_handle_get_function
(globus_openssl_error_handle_t handle)
const char * globus_openssl_error_handle_get_reason
(globus_openssl_error_handle_t handle)
globus_object_t * globus_error_construct_openssl_error
(globus_module_descriptor_t *base_source, globus_object_t
*base_cause)
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)
π Detailed Description π
Globus OpenSSL Error Object. β¨
The globus_openssl_error_handle_t is an opaque structure pointer which contains information about the OpenSSL call which generated an error. The functions in the Globus OpenSSL Error Object section of the API are used to create, manipulate, and destroy Globus OpenSSL Error object data. it's giving very "I hold the receipts of what OpenSSL did" energy fr fr π«Ά
π Macro Definition Documentation π
π #define GLOBUS_ERROR_TYPE_OPENSSL
Error type definition β
π₯ Function Documentation π₯
π globus_object_t * globus_error_construct_openssl_error (globus_module_descriptor_t * base_source, globus_object_t * base_cause)
Allocate and initialize an error of type GLOBUS_ERROR_TYPE_OPENSSL. This function, combined with globus_error_initialize_openssl_error(), will recursively generate globus error objects (of type globus_object_t) from the errors on OpenSSL's static error stack. The errors will be chained in a causal fashion to provide a path to the root cause of the actual error. like a lil detective trail back to the origin story π΅οΈβοΈπ
NOTE: the static stack OpenSSL implements for its errors currently only supports at most 16 errors, so if more are added, the errors that were added first will be wiped out. If 16 errors are counted in the chain of OpenSSL errors, its possible that some errors (including the original error) are missing. π so yeah, bestie, sometimes the receipts get deleted, that's just how the stack works.
Parameters
base_sourceβ Pointer to the originating globus module.base_causeβ The error object causing the error. This parameter should beNULLin nearly all cases, as the root cause of an error will most likely be in the OpenSSL code itself. The actual cause of the error is determined from the static stack of OpenSSL errors.
Returns
The resulting error object. It is the user's responsibility to eventually free this object using globus_object_free(). A globus_result_t may be obtained by calling globus_error_put() on this object. π don't forget to free it, we do NOT leak in this house.
π§ 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)
Initialize a previously allocated error of type GLOBUS_ERROR_TYPE_OPENSSL. β¨
Parameters
errorβ The previously allocated error object.base_sourceβ Pointer to the originating module.base_causeβ The error object causing the error. If this is the original error this parameter may beNULL.openssl_error_handleβ The OpenSSL error handle associated with this error, this parameter should already be initialized to contain the OpenSSL error code associated with the error.
Returns
The resulting error object. You may have to call globus_error_put() on this object before passing it on. π«Ά
π¦ const char * globus_openssl_error_handle_get_data (globus_openssl_error_handle_t handle)
Get the OpenSSL error data which contains additional data about the error from the OpenSSL error handle. πΈ
Parameters
handleβ The OpenSSL error handle
Returns
The error data
π
int globus_openssl_error_handle_get_data_flags (globus_openssl_error_handle_t handle)
Get the OpenSSL error data flags from the OpenSSL error handle. β
Parameters
handleβ The OpenSSL error handle
Returns
The error data flags
π₯ unsigned long globus_openssl_error_handle_get_error_code (globus_openssl_error_handle_t handle)
Get the OpenSSL error code which represents the OpenSSL error from the OpenSSL error handle. π
Parameters
handleβ The OpenSSL error handle
Returns
The error code
π const char * globus_openssl_error_handle_get_filename (globus_openssl_error_handle_t handle)
Get the filename where the OpenSSL error occurred from the OpenSSL error handle. π
Parameters
handleβ The OpenSSL error handle
Returns
The filename
π§ const char * globus_openssl_error_handle_get_function (globus_openssl_error_handle_t handle)
Get the function name where the OpenSSL error occurred from the OpenSSL error handle. β¨
Parameters
handleβ The OpenSSL error handle
Returns
The function name
π const char * globus_openssl_error_handle_get_library (globus_openssl_error_handle_t handle)
Get the library name where the OpenSSL error occurred in from the OpenSSL error handle. π
Parameters
handleβ The OpenSSL error handle
Returns
The library name
π int globus_openssl_error_handle_get_linenumber (globus_openssl_error_handle_t handle)
Get the line number on which the OpenSSL error occurred from the OpenSSL error handle. π
Parameters
handleβ The OpenSSL error handle
Returns
The line number
π¦ const char * globus_openssl_error_handle_get_reason (globus_openssl_error_handle_t handle)
Get the reason string which caused the OpenSSL error from the OpenSSL error handle. π the "why though" of it all.
Parameters
handleβ The OpenSSL error handle
Returns
The reason string
πΈ Author πΈ
Generated automatically by Doxygen for globus_gsi_openssl_error from the source code. π€β¨
and that's the whole page, bestie β every flag, every handle, every return value, all of it, periodt π
this was globus_gsi_openssl_error, Version 4.4, and yeah it's globus_ope...rror_object(3) energy all the way down. mwah, go free your error objects π«Άπ
π¦ where this page comes from
- fedora 43: globus-gsi-openssl-error-doc 4.4-9.fc43 Β· Apache-2.0
- fedora 44: globus-gsi-openssl-error-doc 4.4-10.fc44 Β· Apache-2.0
- ubuntu resolute: libglobus-gsi-openssl-error-doc 4.4-3build1 Β· Apache-2.0
- ubuntu stonking: libglobus-gsi-openssl-error-doc 4.4-3build2 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms