1OPENSSL_CONFIG(3) OpenSSL OPENSSL_CONFIG(3)
2
3
4
6 OPENSSL_config, OPENSSL_no_config - simple OpenSSL configuration
7 functions
8
10 #include <openssl/conf.h>
11
12 #if OPENSSL_API_COMPAT < 0x10100000L
13 void OPENSSL_config(const char *appname);
14 void OPENSSL_no_config(void);
15 #endif
16
18 OPENSSL_config() configures OpenSSL using the standard openssl.cnf and
19 reads from the application section appname. If appname is NULL then the
20 default section, openssl_conf, will be used. Errors are silently
21 ignored. Multiple calls have no effect.
22
23 OPENSSL_no_config() disables configuration. If called before
24 OPENSSL_config() no configuration takes place.
25
26 If the application is built with OPENSSL_LOAD_CONF defined, then a call
27 to OpenSSL_add_all_algorithms() will implicitly call OPENSSL_config()
28 first.
29
31 The OPENSSL_config() function is designed to be a very simple "call it
32 and forget it" function. It is however much better than nothing.
33 Applications which need finer control over their configuration
34 functionality should use the configuration functions such as
35 CONF_modules_load() directly. This function is deprecated and its use
36 should be avoided. Applications should instead call
37 CONF_modules_load() during initialization (that is before starting any
38 threads).
39
40 There are several reasons why calling the OpenSSL configuration
41 routines is advisable. For example, to load dynamic ENGINEs from shared
42 libraries (DSOs). However, very few applications currently support the
43 control interface and so very few can load and use dynamic ENGINEs.
44 Equally in future more sophisticated ENGINEs will require certain
45 control operations to customize them. If an application calls
46 OPENSSL_config() it doesn't need to know or care about ENGINE control
47 operations because they can be performed by editing a configuration
48 file.
49
51 OPENSSL_CONF
52 The path to the config file. Ignored in set-user-ID and set-group-
53 ID programs.
54
56 Neither OPENSSL_config() nor OPENSSL_no_config() return a value.
57
59 config(5), CONF_modules_load_file(3)
60
62 The OPENSSL_no_config() and OPENSSL_config() functions were deprecated
63 in OpenSSL 1.1.0 by OPENSSL_init_crypto().
64
66 Copyright 2004-2020 The OpenSSL Project Authors. All Rights Reserved.
67
68 Licensed under the OpenSSL license (the "License"). You may not use
69 this file except in compliance with the License. You can obtain a copy
70 in the file LICENSE in the source distribution or at
71 <https://www.openssl.org/source/license.html>.
72
73
74
751.1.1q 2022-07-21 OPENSSL_CONFIG(3)