1CONF_modules_load_file(3) OpenSSL CONF_modules_load_file(3)
2
3
4
6 CONF_modules_load_file, CONF_modules_load - OpenSSL configuration functions
7
9 #include <openssl/conf.h>
10
11 int CONF_modules_load_file(const char *filename, const char *appname,
12 unsigned long flags);
13 int CONF_modules_load(const CONF *cnf, const char *appname,
14 unsigned long flags);
15
17 The function CONF_modules_load_file() configures OpenSSL using file
18 filename and application name appname. If filename is NULL the standard
19 OpenSSL configuration file is used. If appname is NULL the standard
20 OpenSSL application name openssl_conf is used. The behaviour can be
21 cutomized using flags.
22
23 CONF_modules_load() is idential to CONF_modules_load_file() except it
24 read configuration information from cnf.
25
27 The following flags are currently recognized:
28
29 CONF_MFLAGS_IGNORE_ERRORS if set errors returned by individual
30 configuration modules are ignored. If not set the first module error is
31 considered fatal and no further modules are loads.
32
33 Normally any modules errors will add error information to the error
34 queue. If CONF_MFLAGS_SILENT is set no error information is added.
35
36 If CONF_MFLAGS_NO_DSO is set configuration module loading from DSOs is
37 disabled.
38
39 CONF_MFLAGS_IGNORE_MISSING_FILE if set will make
40 CONF_load_modules_file() ignore missing configuration files. Normally a
41 missing configuration file return an error.
42
44 These functions return 1 for success and a zero or negative value for
45 failure. If module errors are not ignored the return code will reflect
46 the return value of the failing module (this will always be zero or
47 negative).
48
50 conf(5), OPENSSL_config(3), "CONF_free(3), CONF_free(3)", err(3),err(3)
51
53 CONF_modules_load_file and CONF_modules_load first appeared in OpenSSL
54 0.9.7.
55
56
57
581.0.1e 2013-02-11 CONF_modules_load_file(3)