diff options
author | Matt Caswell <matt@openssl.org> | 2020-06-26 20:49:19 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2020-07-08 08:55:56 +0100 |
commit | 146aebc6a082ac4343b79dcf18ef86e853b85d85 (patch) | |
tree | 8df62b647d7959eb570f4d5f963bde65dd71a8ea /test | |
parent | 90a74d8c4331c363d68ecd1168bc5344f7ba9be8 (diff) |
Add a test to check having a provider loaded without a groups still works
As long as we have at least one provider loaded which offers some
groups, it doesn't matter if we have others loaded that don't.
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/12292)
Diffstat (limited to 'test')
-rw-r--r-- | test/sslapitest.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/sslapitest.c b/test/sslapitest.c index 182984ecb1..afc4ea8d40 100644 --- a/test/sslapitest.c +++ b/test/sslapitest.c @@ -8235,8 +8235,10 @@ static int test_pluggable_group(void) SSL *clientssl = NULL, *serverssl = NULL; int testresult = 0; OSSL_PROVIDER *tlsprov = OSSL_PROVIDER_load(libctx, "tls-provider"); + /* Check that we are not impacted by a provider without any groups */ + OSSL_PROVIDER *legacyprov = OSSL_PROVIDER_load(libctx, "legacy"); - if (!TEST_ptr(tlsprov)) + if (!TEST_ptr(tlsprov) || !TEST_ptr(legacyprov)) goto end; if (!TEST_true(create_ssl_ctx_pair(libctx, TLS_server_method(), @@ -8263,6 +8265,7 @@ static int test_pluggable_group(void) SSL_CTX_free(sctx); SSL_CTX_free(cctx); OSSL_PROVIDER_unload(tlsprov); + OSSL_PROVIDER_unload(legacyprov); return testresult; } |