Loading...
Searching...
No Matches
Globus OpenSSL Module

Globus OpenSSL Module.

The globus_openssl library is motivated by the desire to make OpenSSL thread safe. This is done by allocating a mutex pool and setting relevant callback functions in the module activation functions.

Any program that uses OpenSSL functions with Globus must include the globus_openssl.h header.

Activation.

Globus OpenSSL uses standard Globus module activation and deactivation. Before any OpenSSL functions are called, the following function must be called:

globus_module_activate(GLOBUS_OPENSSL_MODULE)
GLOBUS_OPENSSL_MODULE
#define GLOBUS_OPENSSL_MODULE
Definition globus_openssl.h:90

This function returns GLOBUS_SUCCESS if OpenSSL was successfully initialized, and you are therefore allowed to subsequently call OpenSSL functions. Otherwise, an error code is returned, and OpenSSL functions should not subsequently be called. This function may be called multiple times.

To deactivate the OpenSSL module , the following function must be called:

globus_module_deactivate(GLOBUS_OPENSSL_MODULE)

This function should be called once for each time OpenSSL was activated.