openssl/util
Dr. Matthias St. Pierre 3ab736acb8 util/wrap.pl: use the apps/openssl.cnf from the source tree
The `make install_fips` target failed

    msp@debian:~/src/openssl$ make install_fips
    *** Installing FIPS module
    install providers/fips.so -> /opt/openssl-dev/lib/ossl-modules/fips.so
    *** Installing FIPS module configuration
    fipsinstall /opt/openssl-dev/ssl/fipsmodule.cnf
    FATAL: Startup failure (dev note: apps_startup()) for ./apps/openssl
    ... No such file or directory:crypto/conf/conf_def.c:771:calling stat(fipsmodule.cnf)
    ...
    make: *** [Makefile:3341: install_fips] Error 1

because the `openssl fipsinstall` command was loading a previously installed
configuration file instead of the copy shipped with the source tree.

    msp@debian:~/src/openssl$ strace -f make install_fips |& grep openssl.cnf
    [pid 128683] openat(AT_FDCWD, "/opt/openssl-dev/ssl/openssl.cnf", O_RDONLY) = 3

This issue reveiled a more general problem, which applies to the tests as well:
unless openssl is installed, the openssl app must not use any preinstalled
configuration file. This holds in particular when the preinstalled configuration
file load providers, which caused the above failure.

The most consistent way to achieve this behaviour is to set the OPENSSL_CONF
environment variable to the correct location in the util/wrap.pl perl wrapper.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14136)
2021-04-13 12:13:10 +02:00
..
perl Update copyright year 2021-04-08 13:04:41 +01:00
add-depends.pl Following the license change, modify the boilerplates in util/, tools/ 2018-12-06 14:17:23 +01:00
build.info Build: Change all _NO_INST to use attributes instead. 2019-01-22 12:35:39 +01:00
cavs-to-evptest.pl Add the NIST CAVS test vectors for CCM 2019-05-23 10:49:54 +01:00
check-format-test-negatives.c Update copyright year 2021-01-28 13:54:57 +01:00
check-format-test-positives.c Update copyright year 2021-01-28 13:54:57 +01:00
check-format.pl Update copyright year 2021-01-28 13:54:57 +01:00
check-malloc-errs Following the license change, modify the boilerplates in util/, tools/ 2018-12-06 14:17:23 +01:00
ck_errf.pl Create provider errors and use them 2019-04-19 09:31:54 +01:00
copy.pl Following the license change, modify the boilerplates in util/, tools/ 2018-12-06 14:17:23 +01:00
dofile.pl configdata.pm.in, util/dofile.pl: Make a HERE document stricter. 2020-10-27 10:17:19 +01:00
echo.pl Windows: fix echo for nmake 2018-07-11 14:49:02 +02:00
engines.num Change the build of engines to use ordinal files for symbol export 2018-10-05 08:22:42 +02:00
err-to-raise Simplify util/err-to-raise 2020-11-18 11:40:52 +01:00
find-doc-nits Update copyright year 2021-01-28 13:54:57 +01:00
find-unused-errs Following the license change, modify the boilerplates in util/, tools/ 2018-12-06 14:17:23 +01:00
fix-deprecation util/fix-deprecation: DEPRECATEDIN conversion util for public headers 2020-11-20 20:55:03 +01:00
fix-includes Update copyright year 2020-04-23 13:55:52 +01:00
fix-includes.sed CRYPTO: split cipher_platform.h into algorithm specific headers 2019-12-19 13:31:29 +01:00
indent.pro Deprecate OCSP_xxx API for OSSL_HTTP_xxx 2021-01-19 11:13:15 +01:00
libcrypto.num Remove the function EVP_PKEY_set_alias_type 2021-04-12 11:47:24 +01:00
libssl.num Adding TLS group name retrieval 2021-01-08 17:04:46 +00:00
local_shlib.com.in VMS: fix util/[un]local.com.in to handle attributes 2019-03-05 08:56:20 +01:00
markdownlint.rb util/markdownlint.rb: Add two rule exceptions: MD023 and MD026 2020-07-05 11:29:43 +02:00
merge-err-lines Add merge-err-lines script 2019-09-19 09:27:38 -04:00
missingcrypto111.txt APPS: Allow OPENSSL_CONF to be empty, not loading a config file 2021-01-13 11:53:15 +01:00
missingcrypto-internal.txt STORE: Move the built-in 'file:' loader to become an engine module 2020-09-03 17:48:32 +02:00
missingcrypto.txt Dual 1024-bit exponentiation optimization for Intel IceLake CPU 2021-03-22 09:48:00 +00:00
missingmacro111.txt Document some SSL DH related functions/macros 2020-11-18 14:14:53 +00:00
missingmacro.txt Document the OSSL_PARAM_DEFN macro 2021-02-22 12:15:34 +00:00
missingssl111.txt Adjust all util/missing*.txt to include the section number 2019-12-21 22:53:54 +01:00
missingssl-internal.txt Initialize files that declare internal symbols 2020-04-11 15:51:43 +02:00
missingssl.txt Adjust all util/missing*.txt to include the section number 2019-12-21 22:53:54 +01:00
mkbuildinf.pl Following the license change, modify the boilerplates in util/, tools/ 2018-12-06 14:17:23 +01:00
mkdef.pl Build: Make NonStop shared libraries only export selected symbols 2020-09-25 12:05:47 +02:00
mkdir-p.pl Update copyright year 2021-04-08 13:04:41 +01:00
mkerr.pl Update copyright year 2021-02-18 15:05:17 +00:00
mknum.pl Update copyright year 2021-02-18 15:05:17 +00:00
mkpod2html.pl util/mkpod2html.pl: Fix unbalanced quotes 2020-05-28 14:00:49 +02:00
mkrc.pl util/mkrc.pl: Make sure FILEVERSION and PRODUCTVERSION have four numbers 2020-11-17 13:18:16 +01:00
mktar.sh Simplify the tarball generating scripts 2020-09-24 08:03:00 +02:00
opensslwrap.sh util/opensslwrap.sh: adjust to define OPENSSL_MODULES as well 2019-07-15 16:14:35 +02:00
other-internal.syms Suppress errors about undocumented asn1_d2i_read_bio 2021-02-22 12:11:38 +00:00
other.syms Note that the OSSL_CORE_MAKE_FUNC macro is reserved 2021-02-22 12:15:48 +00:00
providers.num Add provider module infrastructure 2019-03-11 20:40:13 +01:00
shlib_wrap.sh.in Add explicit support in util/shlib_wrap.sh.in for NonStop DLL loading. 2021-03-30 19:08:32 +02:00
su-filter.pl Following the license change, modify the boilerplates in util/, tools/ 2018-12-06 14:17:23 +01:00
unlocal_shlib.com.in VMS: fix util/[un]local.com.in to handle attributes 2019-03-05 08:56:20 +01:00
withlibctx.pl Perl util to do with_libctx renaming 2020-10-01 09:23:05 +01:00
wrap.pl util/wrap.pl: use the apps/openssl.cnf from the source tree 2021-04-13 12:13:10 +02:00