5 CONF_modules_load_file, CONF_modules_load - OpenSSL configuration functions
9 #include <openssl/conf.h>
11 int CONF_modules_load_file(const char *filename, const char *appname,
13 int CONF_modules_load(const CONF *cnf, const char *appname,
18 The function CONF_modules_load_file() configures OpenSSL using file
19 B<filename> and application name B<appname>. If B<filename> is NULL
20 the standard OpenSSL configuration file is used. If B<appname> is
21 NULL the standard OpenSSL application name B<openssl_conf> is used.
22 The behaviour can be cutomized using B<flags>.
24 CONF_modules_load() is idential to CONF_modules_load_file() except it
25 read configuration information from B<cnf>.
29 The following B<flags> are currently recognized:
31 B<CONF_MFLAGS_IGNORE_ERRORS> if set errors returned by individual
32 configuration modules are ignored. If not set the first module error is
33 considered fatal and no further modules are loads.
35 Normally any modules errors will add error information to the error queue. If
36 B<CONF_MFLAGS_SILENT> is set no error information is added.
38 If B<CONF_MFLAGS_NO_DSO> is set configuration module loading from DSOs is
41 B<CONF_MFLAGS_IGNORE_MISSING_FILE> if set will make CONF_load_modules_file()
42 ignore missing configuration files. Normally a missing configuration file
47 These functions return 1 for success and a zero or negative value for
48 failure. If module errors are not ignored the return code will reflect the
49 return value of the failing module (this will always be zero or negative).
53 L<conf(5)|conf(5)>, L<OPENSSL_config(3)|OPENSSL_config(3)>,
54 L<CONF_free(3), CONF_free(3)>, L<err(3),err(3)>
58 CONF_modules_load_file and CONF_modules_load first appeared in OpenSSL 0.9.7.