aboutsummaryrefslogtreecommitdiff
path: root/test/cmp_msg_test.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2020-08-23 10:06:06 +0200
committerRichard Levitte <levitte@openssl.org>2020-08-24 18:20:29 +0200
commit9afa0748cffeabbdd01bf35c8955797daba31bea (patch)
treec76b9ce44a8c3bd543c89fec371ed6dc4aa5810f /test/cmp_msg_test.c
parent39d9be390a16d3bc5c2b94ad31b705f8239af779 (diff)
downloadopenssl-9afa0748cffeabbdd01bf35c8955797daba31bea.zip
openssl-9afa0748cffeabbdd01bf35c8955797daba31bea.tar.gz
openssl-9afa0748cffeabbdd01bf35c8955797daba31bea.tar.bz2
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/cmp_msg_test.c b/test/cmp_msg_test.c
index b9309a6..a56f04f 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();