diff options
author | Richard Levitte <levitte@openssl.org> | 2020-08-23 10:06:06 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2020-08-24 18:20:29 +0200 |
commit | 9afa0748cffeabbdd01bf35c8955797daba31bea (patch) | |
tree | c76b9ce44a8c3bd543c89fec371ed6dc4aa5810f /test/cmp_protect_test.c | |
parent | 39d9be390a16d3bc5c2b94ad31b705f8239af779 (diff) |
TEST: Fix CMP tests so they load keys in the current library context
Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com>
(Merged from https://github.com/openssl/openssl/pull/12705)
Diffstat (limited to 'test/cmp_protect_test.c')
-rw-r--r-- | test/cmp_protect_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/cmp_protect_test.c b/test/cmp_protect_test.c index 6413c20a23..66cc6af370 100644 --- a/test/cmp_protect_test.c +++ b/test/cmp_protect_test.c @@ -521,11 +521,11 @@ int setup_tests(void) if (!test_get_libctx(&libctx, &default_null_provider, &provider, 10, USAGE)) return 0; - if (!TEST_ptr(loadedkey = load_pem_key(server_key_f)) + if (!TEST_ptr(loadedkey = load_pem_key(server_key_f, libctx)) || !TEST_ptr(cert = load_pem_cert(server_cert_f, libctx))) return 0; - if (!TEST_ptr(loadedprivkey = load_pem_key(server_f))) + if (!TEST_ptr(loadedprivkey = load_pem_key(server_f, libctx))) return 0; if (TEST_true(EVP_PKEY_up_ref(loadedprivkey))) loadedpubkey = loadedprivkey; |