Configure/Makefile: install the fips provider if it was configured
authorDr. Matthias St. Pierre <matthias.st.pierre@ncp-e.com>
Sun, 25 Apr 2021 22:14:59 +0000 (00:14 +0200)
committerDr. Matthias St. Pierre <matthias.st.pierre@ncp-e.com>
Thu, 29 Apr 2021 09:26:57 +0000 (11:26 +0200)
commit18da9fc31f050edaf65da162f01c7bea920a5aac
treed5eaf2c1c5d70aa39ce04813cd06afd76be65f4a
parent4e282708c5bb82b6caed8e0565b9ac4ac15a7ac3
Configure/Makefile: install the fips provider if it was configured

To follow the principle "what you configure is what you install",
the `make install` target now includes the installation of the
fips provider (`make install_fips`) if (and only if) OpenSSL was
configured with fips support (`enable-fips`).

The `make install_fips` target exists as well and can be used
to install just the fips provider. It requires `enable-fips`
and issues an error message if `no-fips` was configured.

The anologue holds for the 'uninstall_fips' target.

Fixes #13693

Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/13684)
Configurations/unix-Makefile.tmpl
Configurations/windows-makefile.tmpl