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
build.info
cavs-to-evptest.pl
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
ck_errf.pl
copy.pl
dofile.pl
echo.pl
engines.num
err-to-raise
find-doc-nits Update copyright year 2021-01-28 13:54:57 +01:00
find-unused-errs
fix-deprecation
fix-includes
fix-includes.sed
indent.pro
libcrypto.num Remove the function EVP_PKEY_set_alias_type 2021-04-12 11:47:24 +01:00
libssl.num
local_shlib.com.in
markdownlint.rb
merge-err-lines
missingcrypto111.txt
missingcrypto-internal.txt
missingcrypto.txt Dual 1024-bit exponentiation optimization for Intel IceLake CPU 2021-03-22 09:48:00 +00:00
missingmacro111.txt
missingmacro.txt Document the OSSL_PARAM_DEFN macro 2021-02-22 12:15:34 +00:00
missingssl111.txt
missingssl-internal.txt
missingssl.txt
mkbuildinf.pl
mkdef.pl
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
mkrc.pl
mktar.sh
opensslwrap.sh
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
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
unlocal_shlib.com.in
withlibctx.pl
wrap.pl util/wrap.pl: use the apps/openssl.cnf from the source tree 2021-04-13 12:13:10 +02:00