diff options
author | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2020-08-12 22:20:23 +0200 |
---|---|---|
committer | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2020-08-21 09:04:13 +0200 |
commit | b0248cbc3e2fa20e9c4d97845808537f9bd4206a (patch) | |
tree | 64d7e02d0cf8c2866fe84c736e2cc94d6acbf163 /test/cmp_vfy_test.c | |
parent | Use in CMP+CRMF libctx and propq param added to sign/verify/HMAC/decrypt (diff) | |
download | openssl-b0248cbc3e2fa20e9c4d97845808537f9bd4206a.tar.xz openssl-b0248cbc3e2fa20e9c4d97845808537f9bd4206a.zip |
Add libctx/provider support to cmp_client_test
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/11808)
Diffstat (limited to 'test/cmp_vfy_test.c')
-rw-r--r-- | test/cmp_vfy_test.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/cmp_vfy_test.c b/test/cmp_vfy_test.c index b14398a2a2..778aa5a730 100644 --- a/test/cmp_vfy_test.c +++ b/test/cmp_vfy_test.c @@ -594,19 +594,19 @@ int setup_tests(void) } /* Load certificates for cert chain */ - if (!TEST_ptr(endentity1 = load_pem_cert(endentity1_f)) - || !TEST_ptr(endentity2 = load_pem_cert(endentity2_f)) - || !TEST_ptr(root = load_pem_cert(root_f)) - || !TEST_ptr(intermediate = load_pem_cert(intermediate_f))) + if (!TEST_ptr(endentity1 = load_pem_cert(endentity1_f, NULL)) + || !TEST_ptr(endentity2 = load_pem_cert(endentity2_f, NULL)) + || !TEST_ptr(root = load_pem_cert(root_f, NULL)) + || !TEST_ptr(intermediate = load_pem_cert(intermediate_f, NULL))) goto err; - if (!TEST_ptr(insta_cert = load_pem_cert(instacert_f)) - || !TEST_ptr(instaca_cert = load_pem_cert(instaca_f))) + if (!TEST_ptr(insta_cert = load_pem_cert(instacert_f, NULL)) + || !TEST_ptr(instaca_cert = load_pem_cert(instaca_f, NULL))) goto err; /* Load certificates for message validation */ - if (!TEST_ptr(srvcert = load_pem_cert(server_f)) - || !TEST_ptr(clcert = load_pem_cert(client_f))) + if (!TEST_ptr(srvcert = load_pem_cert(server_f, NULL)) + || !TEST_ptr(clcert = load_pem_cert(client_f, NULL))) goto err; if (!TEST_int_eq(1, RAND_bytes(rand_data, OSSL_CMP_TRANSACTIONID_LENGTH))) goto err; |