diff options
Diffstat (limited to 'test/sslprovidertest.c')
-rw-r--r-- | test/sslprovidertest.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/test/sslprovidertest.c b/test/sslprovidertest.c index 5f78554fb9..fd29f797aa 100644 --- a/test/sslprovidertest.c +++ b/test/sslprovidertest.c @@ -50,20 +50,14 @@ static int test_different_libctx(void) goto end; TEST_note("%s provider loaded", modulename); - cctx = SSL_CTX_new_with_libctx(libctx, NULL, TLS_client_method()); - if (!TEST_ptr(cctx)) - goto end; - sctx = SSL_CTX_new_with_libctx(libctx, NULL, TLS_server_method()); - if (!TEST_ptr(sctx)) - goto end; - /* * TODO(3.0): Make this work in TLSv1.3. Currently we can only do RSA key * exchange, because we don't have key gen/param gen for EC yet - which * implies TLSv1.2 only */ - if (!TEST_true(create_ssl_ctx_pair(NULL, - NULL, + if (!TEST_true(create_ssl_ctx_pair(libctx, + TLS_server_method(), + TLS_client_method(), TLS1_VERSION, TLS1_2_VERSION, &sctx, &cctx, cert, privkey))) |