![]() ![]() For example in some cases an error may simply print out a warning message and the application continue. In some cases the use of a configuration file is optional and its absence is not an error: in this case CONF_MFLAGS_IGNORE_MISSING_FILE would be set.Įrrors during configuration may also be handled differently by different applications. Normally a missing configuration file return an error.ĬONF_MFLAGS_DEFAULT_SECTION if set and appname is not NULL will use the default section pointed to by openssl_conf if appname does not exist.īy using CONF_modules_load_file_ex() with appropriate flags an application can customise application configuration to best suit its needs. If CONF_MFLAGS_NO_DSO is set configuration module loading from DSOs is disabled.ĬONF_MFLAGS_IGNORE_MISSING_FILE if set will make CONF_load_modules_file() ignore missing configuration files. Applications calling CONF_modules_load_file_ex explicitly should not generally set this flag. This is used by default in OPENSSL_init_crypto(3) to ignore any errors in the default system-wide configuration file, as having all OpenSSL applications fail to start when there are potentially minor issues in the file is too risky. If CONF_MFLAGS_IGNORE_RETURN_CODES is set the function unconditionally returns success. ![]() ![]() If CONF_MFLAGS_SILENT is set no error information is added. Normally any modules errors will add error information to the error queue. If not set the first module error is considered fatal and no further modules are loaded. If CONF_MFLAGS_IGNORE_ERRORS is set errors returned by individual configuration modules are ignored. The following flags are currently recognized: Note that, the error suppressing can be overriden by config_diagnostics as described in config(5).ĬONF_modules_load_file() is the same as CONF_modules_load_file_ex() but has a NULL library context.ĬONF_modules_load() is identical to CONF_modules_load_file() except it reads configuration information from cnf. The behaviour can be customized using flags. If appname is NULL the standard OpenSSL application name openssl_conf is used. If filename is NULL the standard OpenSSL configuration file is used as determined by calling CONF_get1_default_config_file(). ![]() The function CONF_modules_load_file_ex() configures OpenSSL using library context libctx file filename and application name appname. The caller is responsible for freeing any string returned. Else the function returns the path obtained using X509_get_default_cert_area(3) with the filename "openssl.cnf" appended. If the OPENSSL_CONF environment variable is set its value is returned. The function CONF_get1_default_config_file() determines the default configuration file pathname as follows. Int CONF_modules_load(const CONF *cnf, const char *appname, Int CONF_modules_load_file(const char *filename, const char *appname, Int CONF_modules_load_file_ex(OSSL_LIB_CTX *libctx, const char *filename,Ĭonst char *appname, unsigned long flags) CONF_get1_default_config_file, CONF_modules_load_file_ex, CONF_modules_load_file, CONF_modules_load - OpenSSL configuration functions SYNOPSIS #include Ĭhar *CONF_get1_default_config_file(void) ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |