TEST: Add provider_fallback_test, to test aspects of fallback providers
authorRichard Levitte <levitte@openssl.org>
Sat, 23 May 2020 14:34:07 +0000 (16:34 +0200)
committerRichard Levitte <levitte@openssl.org>
Thu, 4 Jun 2020 14:42:45 +0000 (16:42 +0200)
commitf995e5bdcd5d4c2143323ff78e4dcc0b95c5e024
treea72a180f3d079f4f10c7a33707aa700c33dd2b7c
parent4cbb196b1b33d6ff2089537df0fdb76ac4741e2a
TEST: Add provider_fallback_test, to test aspects of fallback providers

There are cases where the fallback providers aren't treated right.
For example, the following calls, in that order, will end up with
a failed EVP_KEYMGMT_fetch(), even thought the default provider
does supply an implementation of the "RSA" keytype.

    EVP_KEYMGMT *rsameth = NULL;

    OSSL_PROVIDER_available(NULL, "default");
    rsameth = EVP_KEYMGMT_fetch(NULL, "RSA", NULL);

For good measure, this also tests that explicit loading of the default
provider won't fail.

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/11926)
test/build.info
test/provider_fallback_test.c [new file with mode: 0644]
test/recipes/04-test_provider_fallback.t [new file with mode: 0644]