Your company here, and a link to your site. Click to find out more.

CONF_modules_free.3ossl - Man Page

OpenSSL configuration cleanup functions


 #include <openssl/conf.h>

 void CONF_modules_finish(void);
 void CONF_modules_unload(int all);

The following functions have been deprecated since OpenSSL 1.1.0, and can be hidden entirely by defining OPENSSL_API_COMPAT with a suitable version value, see openssl_user_macros(7):

 void CONF_modules_free(void);


CONF_modules_free() closes down and frees up all memory allocated by all configuration modules.  Normally, in versions of OpenSSL prior to 1.1.0, applications called CONF_modules_free() at exit to tidy up any configuration performed.

CONF_modules_finish() calls each configuration modules finish handler to free up any configuration that module may have performed.

CONF_modules_unload() finishes and unloads configuration modules. If all is set to 0 only modules loaded from DSOs will be unloads. If all is 1 all modules, including built-in modules will be unloaded.

Return Values

None of the functions return a value.

See Also

config(5), OPENSSL_config(3), CONF_modules_load_file_ex(3)


CONF_modules_free() was deprecated in OpenSSL 1.1.0; do not use it. For more information see OPENSSL_init_crypto(3).

Referenced By

The man pages CONF_modules_finish.3ossl(3) and CONF_modules_unload.3ossl(3) are aliases of CONF_modules_free.3ossl(3).

2024-06-06 3.2.2 OpenSSL