1OPENSSL_config(3)                   OpenSSL                  OPENSSL_config(3)
2
3
4

NAME

6       OPENSSL_config, OPENSSL_no_config - simple OpenSSL configuration
7       functions
8

SYNOPSIS

10        #include <openssl/conf.h>
11
12        void OPENSSL_config(const char *appname);
13        void OPENSSL_no_config(void);
14

DESCRIPTION

16       OPENSSL_config() configures OpenSSL using the standard openssl.cnf and
17       reads from the application section appname. If appname is NULL then the
18       default section, openssl_conf, will be used.  Errors are silently
19       ignored.  Multiple calls have no effect.
20
21       OPENSSL_no_config() disables configuration. If called before
22       OPENSSL_config() no configuration takes place.
23

NOTES

25       The OPENSSL_config() function is designed to be a very simple "call it
26       and forget it" function.  It is however much better than nothing.
27       Applications which need finer control over their configuration
28       functionality should use the configuration functions such as
29       CONF_modules_load() directly. This function is deprecated and its use
30       should be avoided.  Applications should instead call
31       CONF_modules_load() during initialization (that is before starting any
32       threads).
33
34       There are several reasons why calling the OpenSSL configuration
35       routines is advisable. For example new ENGINE functionality was added
36       to OpenSSL 0.9.7.  In OpenSSL 0.9.7 control functions can be supported
37       by ENGINEs, this can be used (among other things) to load dynamic
38       ENGINEs from shared libraries (DSOs).  However very few applications
39       currently support the control interface and so very few can load and
40       use dynamic ENGINEs. Equally in future more sophisticated ENGINEs will
41       require certain control operations to customize them. If an application
42       calls OPENSSL_config() it doesn't need to know or care about ENGINE
43       control operations because they can be performed by editing a
44       configuration file.
45
46       Applications should free up configuration at application closedown by
47       calling CONF_modules_free().
48

RETURN VALUES

50       Neither OPENSSL_config() nor OPENSSL_no_config() return a value.
51

SEE ALSO

53       conf(5), CONF_load_modules_file(3), CONF_modules_free(3)
54

HISTORY

56       OPENSSL_config() and OPENSSL_no_config() first appeared in OpenSSL
57       0.9.7
58
59
60
611.0.2o                            2020-08-01                 OPENSSL_config(3)
Impressum