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