CONF_MODULES_FREE(3ossl)
π CONF_MODULES_FREE(3ossl) β the OpenSSL config cleanup besties
okay so this is one of those 3ossl manpages, from the OpenSSL fam, and it's all about tidying up your configuration modules. Think of it as the "ok bestie, we're leaving the party, grab your stuff" of the crypto library π
β¨ NAME β¨
CONF_modules_free, CONF_modules_finish, CONF_modules_unload β the OpenSSL configuration cleanup functions. yes, all three, they're a trio, they come as a set π
πΈ SYNOPSIS πΈ
#include <openssl/conf.h>
void CONF_modules_finish(void);
void CONF_modules_unload(int all);
and then, plot twist π β the following functions have been deprecated since OpenSSL 1.1.0, and you can hide them entirely by defining OPENSSL_API_COMPAT with a suitable version value. check openssl_user_macros(7) for the deets:
void CONF_modules_free(void);
π¦ DESCRIPTION π¦
So CONF_modules_free() closes down and frees up all the memory allocated by all the configuration modules. like, everything. the whole closet π§Ήβ¨ Normally β and by "normally" we mean in versions of OpenSSL prior to 1.1.0 β applications called CONF_modules_free() at exit to tidy up any configuration they'd performed. that's the old way, iykyk.
CONF_modules_finish() calls each configuration module's finish handler, so every module can free up whatever configuration it may have performed. it's giving "each of you clean up your own mess" π«Ά
CONF_modules_unload() finishes and unloads configuration modules. here's the vibe check on the all arg:
- if
allis set to0, only modules loaded from DSOs will be unloaded π - if
allis1, all modules β including built-in modules β will be unloaded π₯
ngl the original text literally says "will be unloads" for the 0 case, and we are not fixing it, we're just lovingly reporting it π
π RETURN VALUES π
None of the functions return a value. not one. zero. void. they are above such things π
π SEE ALSO π
π HISTORY π
CONF_modules_free() was deprecated in OpenSSL 1.1.0 β do not use it π¨ For more information see OPENSSL_init_crypto(3).
π COPYRIGHT π
Copyright 2004-2020 The OpenSSL Project Authors. All Rights Reserved.
Licensed under the Apache License 2.0 (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at <https://www.openssl.org/source/license.html>.
and that's the whole page, bestie π this one's from OpenSSL 3.5.6, dated 2026-04-07, so you know it's fresh β¨ mwah, go clean up your modules π π
π¦ where this page comes from
- freebsd 15.1: base 15.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms