]> git.ipfire.org Git - thirdparty/openssl.git/commit - providers/common/include/prov/providercommonerr.h
Add ERR_raise() errors to fips OSSL_provider_init and self tests.
authorShane Lontis <shane.lontis@oracle.com>
Tue, 21 Jul 2020 06:30:02 +0000 (16:30 +1000)
committerShane Lontis <shane.lontis@oracle.com>
Tue, 21 Jul 2020 06:30:02 +0000 (16:30 +1000)
commit9f7bdcf37f9541f7a1e4dc62ebdf97e8d8ccd307
tree5e68472ae3a8d05c6294c1169b513c0434329a57
parent823a113574451ea2e050bee7ce35861948ad55ca
Add ERR_raise() errors to fips OSSL_provider_init and self tests.

As the ERR_raise() is setup at this point returng a range of negative values for errors is not required.
This will need to be revisited if the code ever moves to running from the DEP.
Added a -config option to the fips install so that it can test if a fips module is loadable from configuration.
(The -verify option only uses the generated config, whereas -config uses the normal way of including the generated data via another config file).
Added more failure tests for the raised errors.

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/12346)
apps/fipsinstall.c
crypto/err/openssl.txt
crypto/provider_core.c
doc/man1/openssl-fipsinstall.pod.in
doc/man5/fips_config.pod
providers/common/include/prov/providercommonerr.h
providers/common/provider_err.c
providers/fips/fipsprov.c
providers/fips/self_test.c
test/recipes/03-test_fipsinstall.t