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_msg_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_msg_test.c')
-rw-r--r-- | test/cmp_msg_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/cmp_msg_test.c b/test/cmp_msg_test.c index b9309a6983..a56f04f1df 100644 --- a/test/cmp_msg_test.c +++ b/test/cmp_msg_test.c @@ -575,7 +575,7 @@ int setup_tests(void) if (!test_get_libctx(&libctx, &default_null_provider, &provider, 3, USAGE)) return 0; - if (!TEST_ptr(newkey = load_pem_key(newkey_f)) + if (!TEST_ptr(newkey = load_pem_key(newkey_f, libctx)) || !TEST_ptr(cert = load_pem_cert(server_cert_f, libctx)) || !TEST_int_eq(1, RAND_bytes_ex(libctx, ref, sizeof(ref)))) { cleanup_tests(); |