]> git.ipfire.org Git - thirdparty/openssl.git/blame - doc/crypto/OPENSSL_config.pod
RT4562: Backport doc fix.
[thirdparty/openssl.git] / doc / crypto / OPENSSL_config.pod
CommitLineData
5a8922ae
DSH
1=pod
2
3=head1 NAME
4
f82bb9cb 5OPENSSL_config, OPENSSL_no_config - simple OpenSSL configuration functions
5a8922ae
DSH
6
7=head1 SYNOPSIS
8
9 #include <openssl/conf.h>
10
dd8a1f20 11 void OPENSSL_config(const char *appname);
5a8922ae
DSH
12 void OPENSSL_no_config(void);
13
14=head1 DESCRIPTION
15
dd8a1f20
RS
16OPENSSL_config() configures OpenSSL using the standard B<openssl.cnf> and
17reads from the application section B<appname>. If B<appname> is NULL then
18the default section, B<openssl_conf>, will be used.
6d098516
RS
19Errors are silently ignored.
20Multiple calls have no effect.
5a8922ae
DSH
21
22OPENSSL_no_config() disables configuration. If called before OPENSSL_config()
23no configuration takes place.
24
25=head1 NOTES
26
6d098516
RS
27The OPENSSL_config() function is designed to be a very simple "call it and
28forget it" function.
29It is however B<much> better than nothing. Applications which need finer
30control over their configuration functionality should use the configuration
31functions such as CONF_modules_load() directly. This function is deprecated
32and its use should be avoided.
33Applications should instead call CONF_modules_load() during
34initialization (that is before starting any threads).
5a8922ae
DSH
35
36There are several reasons why calling the OpenSSL configuration routines is
37advisable. For example new ENGINE functionality was added to OpenSSL 0.9.7.
38In OpenSSL 0.9.7 control functions can be supported by ENGINEs, this can be
39used (among other things) to load dynamic ENGINEs from shared libraries (DSOs).
40However very few applications currently support the control interface and so
41very few can load and use dynamic ENGINEs. Equally in future more sophisticated
42ENGINEs will require certain control operations to customize them. If an
43application calls OPENSSL_config() it doesn't need to know or care about
44ENGINE control operations because they can be performed by editing a
45configuration file.
46
f82bb9cb
DSH
47Applications should free up configuration at application closedown by calling
48CONF_modules_free().
49
5a8922ae
DSH
50=head1 RETURN VALUES
51
52Neither OPENSSL_config() nor OPENSSL_no_config() return a value.
53
54=head1 SEE ALSO
55
f82bb9cb 56L<conf(5)|conf(5)>, L<CONF_load_modules_file(3)|CONF_load_modules_file(3)>,
72967d5b 57L<CONF_modules_free(3)|CONF_modules_free(3)>
5a8922ae
DSH
58
59=head1 HISTORY
60
61OPENSSL_config() and OPENSSL_no_config() first appeared in OpenSSL 0.9.7
62
63=cut