1CONF_modules_load_file(3)           OpenSSL          CONF_modules_load_file(3)
2
3
4

NAME

6        CONF_modules_load_file, CONF_modules_load - OpenSSL configuration functions
7

SYNOPSIS

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

DESCRIPTION

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

NOTES

27       The following flags are currently recognized:
28
29       CONF_MFLAGS_IGNORE_ERRORS if set errors returned by individual configu‐
30       ration modules are ignored. If not set the first module error is con‐
31       sidered 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 CONF_load_mod‐
40       ules_file() ignore missing configuration files. Normally a missing con‐
41       figuration file return an error.
42

RETURN VALUE

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

SEE ALSO

50       conf(5), OPENSSL_config(3), "CONF_free(3), CONF_free(3)", err(3),err(3)
51

HISTORY

53       CONF_modules_load_file and CONF_modules_load first appeared in OpenSSL
54       0.9.7.
55
56
57
580.9.8b                            2004-03-02         CONF_modules_load_file(3)
Impressum