]> git.ipfire.org Git - thirdparty/openssl.git/commit - test/evp_test.c
test/evp_test.c: modify to use OSSL_PROVIDER_available()
authorRichard Levitte <levitte@openssl.org>
Wed, 17 Jul 2019 09:34:14 +0000 (11:34 +0200)
committerRichard Levitte <levitte@openssl.org>
Fri, 26 Jul 2019 16:14:41 +0000 (18:14 +0200)
commit3b5d61f4721f91b5f31a8d3b935f9b3cf4c27644
treecfeace28e27f33fc806b5c31b60f1a669b825a78
parent36f5ec55e69716024f70df53074a2871e091a3e1
test/evp_test.c: modify to use OSSL_PROVIDER_available()

This changes the stanza format used so far.  Some test stanza had the
following line, only possible for digests:

    Legacy = 1

These have been traded for the following:

    Availablein = legacy

That line is globally available in all test stanza and can be used to
tell what providers a certain algorithm may be available in.  Only one
provider needs to match, so one might have something like this for
some tests:

    Availablein = default fips

This means that one of those providers must be available for the test
stanza to be performed.

If the providers mentioned for a stanza aren't available, the test is
skipped.
If this line isn't used in a stanza, the algorithm is assumed to be
available unconditionally (either by fallback providers, or providers
loaded by the config file).

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/9398)
test/evp_test.c
test/recipes/30-test_evp_data/evpdigest.txt