OPENSSL_config(3) | LibreSSL | OPENSSL_config(3) |
NAME
OPENSSL_config, OPENSSL_no_config - simple OpenSSL configuration functionsSYNOPSIS
#include <openssl/conf.h>
void OPENSSL_config(const char *config_name);
void OPENSSL_no_config(void);
DESCRIPTION
OPENSSL_config() configures OpenSSL using the standard openssl.cnf configuration file name using config_name. If config_name is NULL then the default name openssl_conf will be used. Any errors are ignored. Further calls to OPENSSL_config() will have no effect. The configuration file format is documented in the conf(5) manual page.NOTES
It is strongly recommended that all new applications call OPENSSL_config() or the more sophisticated functions such as CONF_modules_load() during initialization (that is before starting any threads). By doing this an application does not need to keep track of all configuration options and some new functionality can be supported automatically.RESTRICTIONS
The OPENSSL_config() function is designed to be a very simple "call it and forget it" function. As a result its behaviour is somewhat limited. It ignores all errors silently and it can only load from the standard configuration file location for example.RETURN VALUES
Neither OPENSSL_config() nor OPENSSL_no_config() return a value.SEE ALSO
conf(5), CONF_load_modules_file(3), CONF_modules_free(3)HISTORY
OPENSSL_config() and OPENSSL_no_config() first appeared in OpenSSL 0.9.72015-10-26 | LibreSSL |