]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - test/cmp_msg_test.c
TEST: Fix CMP tests so they load keys in the current library context
[thirdparty/openssl.git] / test / cmp_msg_test.c
index b9309a69836c274eb1958b202de9c2b181dde522..a56f04f1df74d8e4024203cb36d2cefe8af95cb1 100644 (file)
@@ -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();