]> git.ipfire.org Git - thirdparty/openssl.git/blame - doc/man3/OPENSSL_config.pod
Implement EVP_MAC_do_all_ex()
[thirdparty/openssl.git] / doc / man3 / 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
fcd2d5a6
RL
11Deprecated since OpenSSL 1.1.0, can be hidden entirely by defining
12B<OPENSSL_API_COMPAT> with a suitable version value, see
13L<openssl_user_macros(7)>:
14
cda3ae5b 15 void OPENSSL_config(const char *appname);
5a8922ae
DSH
16 void OPENSSL_no_config(void);
17
18=head1 DESCRIPTION
19
cda3ae5b
RS
20OPENSSL_config() configures OpenSSL using the standard B<openssl.cnf> and
21reads from the application section B<appname>. If B<appname> is NULL then
22the default section, B<openssl_conf>, will be used.
abdd6771 23Errors are silently ignored.
14d3b76b 24Multiple calls have no effect.
5a8922ae
DSH
25
26OPENSSL_no_config() disables configuration. If called before OPENSSL_config()
27no configuration takes place.
28
14d3b76b
RS
29If the application is built with B<OPENSSL_LOAD_CONF> defined, then a
30call to OpenSSL_add_all_algorithms() will implicitly call OPENSSL_config()
31first.
5a8922ae 32
14d3b76b 33=head1 NOTES
5a8922ae 34
14d3b76b
RS
35The OPENSSL_config() function is designed to be a very simple "call it and
36forget it" function.
37It is however B<much> better than nothing. Applications which need finer
38control over their configuration functionality should use the configuration
abdd6771
RS
39functions such as CONF_modules_load() directly. This function is deprecated
40and its use should be avoided.
41Applications should instead call CONF_modules_load() during
14d3b76b 42initialization (that is before starting any threads).
5a8922ae
DSH
43
44There are several reasons why calling the OpenSSL configuration routines is
a528d4f0 45advisable. For example, to load dynamic ENGINEs from shared libraries (DSOs).
5a8922ae
DSH
46However very few applications currently support the control interface and so
47very few can load and use dynamic ENGINEs. Equally in future more sophisticated
48ENGINEs will require certain control operations to customize them. If an
49application calls OPENSSL_config() it doesn't need to know or care about
50ENGINE control operations because they can be performed by editing a
51configuration file.
52
284f4f6b
BE
53=head1 ENVIRONMENT
54
55=over 4
56
57=item B<OPENSSL_CONF>
58
59The path to the config file.
60Ignored in set-user-ID and set-group-ID programs.
61
62=back
63
5a8922ae
DSH
64=head1 RETURN VALUES
65
66Neither OPENSSL_config() nor OPENSSL_no_config() return a value.
67
68=head1 SEE ALSO
69
b97fdb57 70L<config(5)>,
cbf6959f 71L<CONF_modules_load_file(3)>
5a8922ae 72
f672aee4
RS
73=head1 HISTORY
74
75The OPENSSL_no_config() and OPENSSL_config() functions were
76deprecated in OpenSSL 1.1.0 by OPENSSL_init_crypto().
77
e2f92610
RS
78=head1 COPYRIGHT
79
28428130 80Copyright 2004-2018 The OpenSSL Project Authors. All Rights Reserved.
e2f92610 81
4746f25a 82Licensed under the Apache License 2.0 (the "License"). You may not use
e2f92610
RS
83this file except in compliance with the License. You can obtain a copy
84in the file LICENSE in the source distribution or at
85L<https://www.openssl.org/source/license.html>.
86
87=cut