1OPENSSL_CONFIG(3ossl)               OpenSSL              OPENSSL_CONFIG(3ossl)
2
3
4

NAME

6       OPENSSL_config, OPENSSL_no_config - simple OpenSSL configuration
7       functions
8

SYNOPSIS

10        #include <openssl/conf.h>
11
12       The following functions have been deprecated since OpenSSL 1.1.0, and
13       can be hidden entirely by defining OPENSSL_API_COMPAT with a suitable
14       version value, see openssl_user_macros(7):
15
16        void OPENSSL_config(const char *appname);
17        void OPENSSL_no_config(void);
18

DESCRIPTION

20       OPENSSL_config() configures OpenSSL using the standard openssl.cnf and
21       reads from the application section appname. If appname is NULL then the
22       default section, openssl_conf, will be used.  Errors are silently
23       ignored.  Multiple calls have no effect.
24
25       OPENSSL_no_config() disables configuration. If called before
26       OPENSSL_config() no configuration takes place.
27
28       If the application is built with OPENSSL_LOAD_CONF defined, then a call
29       to OpenSSL_add_all_algorithms() will implicitly call OPENSSL_config()
30       first.
31

NOTES

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

ENVIRONMENT

53       OPENSSL_CONF
54           The path to the config file.  Ignored in set-user-ID and set-group-
55           ID programs.
56

RETURN VALUES

58       Neither OPENSSL_config() nor OPENSSL_no_config() return a value.
59

SEE ALSO

61       config(5), CONF_modules_load_file(3)
62

HISTORY

64       The OPENSSL_no_config() and OPENSSL_config() functions were deprecated
65       in OpenSSL 1.1.0 by OPENSSL_init_crypto().
66
68       Copyright 2004-2021 The OpenSSL Project Authors. All Rights Reserved.
69
70       Licensed under the Apache License 2.0 (the "License").  You may not use
71       this file except in compliance with the License.  You can obtain a copy
72       in the file LICENSE in the source distribution or at
73       <https://www.openssl.org/source/license.html>.
74
75
76
773.0.5                             2022-11-01             OPENSSL_CONFIG(3ossl)
Impressum