CONF_modules_free.3ssl - Man Page

OpenSSL configuration cleanup functions


 #include <openssl/conf.h>

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


 #if OPENSSL_API_COMPAT < 0x10100000L
 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 builtin modules will be unloaded.

Return Values

None of the functions return a value.

See Also

config(5), OPENSSL_config(3), CONF_modules_load_file(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.3ssl(3) and CONF_modules_unload.3ssl(3) are aliases of CONF_modules_free.3ssl(3).

2021-09-20 1.1.1l OpenSSL