diff options
author | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2020-08-13 17:44:54 +0200 |
---|---|---|
committer | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2020-08-21 09:04:13 +0200 |
commit | 6d1f50b520ce0a2eaa624686a26ffd4a5af00d93 (patch) | |
tree | d094306e91bd79803bb49a9323ec36bd122ecb4e /test/cmp_msg_test.c | |
parent | cac30a69bcadcfcf5beb034abf958bbcdb8b83cb (diff) |
Use in CMP+CRMF libctx and propq param added to sign/verify/HMAC/decrypt
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/11808)
Diffstat (limited to 'test/cmp_msg_test.c')
-rw-r--r-- | test/cmp_msg_test.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/cmp_msg_test.c b/test/cmp_msg_test.c index 2d96596520..1a090a6a02 100644 --- a/test/cmp_msg_test.c +++ b/test/cmp_msg_test.c @@ -376,6 +376,7 @@ static int test_cmp_create_genm(void) static int execute_certrep_create(CMP_MSG_TEST_FIXTURE *fixture) { + OSSL_CMP_CTX *ctx = fixture->cmp_ctx; OSSL_CMP_CERTREPMESSAGE *crepmsg = OSSL_CMP_CERTREPMESSAGE_new(); OSSL_CMP_CERTRESPONSE *read_cresp, *cresp = OSSL_CMP_CERTRESPONSE_new(); EVP_PKEY *privkey; @@ -400,8 +401,8 @@ static int execute_certrep_create(CMP_MSG_TEST_FIXTURE *fixture) goto err; if (!TEST_ptr_null(ossl_cmp_certrepmessage_get0_certresponse(crepmsg, 88))) goto err; - privkey = OSSL_CMP_CTX_get0_newPkey(fixture->cmp_ctx, 1); /* may be NULL */ - certfromresp = ossl_cmp_certresponse_get1_certificate(privkey, read_cresp); + privkey = OSSL_CMP_CTX_get0_newPkey(ctx, 1); /* may be NULL */ + certfromresp = ossl_cmp_certresponse_get1_cert(read_cresp, ctx, privkey); if (certfromresp == NULL || !TEST_int_eq(X509_cmp(cert, certfromresp), 0)) goto err; |