From 1a7cd250ad55a3c9d684a7259c20ea8075c2b08b Mon Sep 17 00:00:00 2001 From: "Dr. David von Oheimb" Date: Wed, 13 May 2020 09:28:24 +0200 Subject: Add libctx and propq parameters to OSSL_CMP_{SRV_},CTX_new() and ossl_cmp_mock_srv_new() Also remove not really to-the-point error message if call fails in apps/cmp.c Reviewed-by: Shane Lontis (Merged from https://github.com/openssl/openssl/pull/11808) --- test/cmp_server_test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/cmp_server_test.c') diff --git a/test/cmp_server_test.c b/test/cmp_server_test.c index 13159299e9..dc52a2515d 100644 --- a/test/cmp_server_test.c +++ b/test/cmp_server_test.c @@ -33,7 +33,7 @@ static CMP_SRV_TEST_FIXTURE *set_up(const char *const test_case_name) if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture)))) return NULL; fixture->test_case_name = test_case_name; - if (!TEST_ptr(fixture->srv_ctx = OSSL_CMP_SRV_CTX_new())) + if (!TEST_ptr(fixture->srv_ctx = OSSL_CMP_SRV_CTX_new(NULL, NULL))) goto err; return fixture; @@ -67,7 +67,7 @@ static int execute_test_handle_request(CMP_SRV_TEST_FIXTURE *fixture) OSSL_CMP_ERRORMSGCONTENT *errorContent; int res = 0; - if (!TEST_ptr(client_ctx = OSSL_CMP_CTX_new()) + if (!TEST_ptr(client_ctx = OSSL_CMP_CTX_new(NULL, NULL)) || !TEST_true(OSSL_CMP_CTX_set_transfer_cb_arg(client_ctx, ctx))) goto end; -- cgit v1.2.3