summaryrefslogtreecommitdiffstats
path: root/test/cmp_msg_test.c
diff options
context:
space:
mode:
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>2020-07-13 14:12:02 +0200
committerDr. David von Oheimb <David.von.Oheimb@siemens.com>2020-07-30 09:38:08 +0200
commit299e0f1eaea1c57354e50a45ecb1c97ac8adb833 (patch)
treedf3e8e33b17a424484029d5b2f224069f6f0873d /test/cmp_msg_test.c
parentcfae32c69a0dde5a47fbd5aed4103fb01fc59acf (diff)
Streamline the CMP request session API, adding the generalized OSSL_CMP_exec_certreq()
Fixes #12395 Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/12431)
Diffstat (limited to 'test/cmp_msg_test.c')
-rw-r--r--test/cmp_msg_test.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/cmp_msg_test.c b/test/cmp_msg_test.c
index ca03dc23e3..92989f95e1 100644
--- a/test/cmp_msg_test.c
+++ b/test/cmp_msg_test.c
@@ -84,9 +84,9 @@ static X509 *cert = NULL;
*/
static int execute_certreq_create_test(CMP_MSG_TEST_FIXTURE *fixture)
{
- EXECUTE_MSG_CREATION_TEST(ossl_cmp_certReq_new(fixture->cmp_ctx,
+ EXECUTE_MSG_CREATION_TEST(ossl_cmp_certreq_new(fixture->cmp_ctx,
fixture->bodytype,
- fixture->err_code));
+ NULL));
}
static int execute_errormsg_create_test(CMP_MSG_TEST_FIXTURE *fixture)
@@ -218,7 +218,7 @@ static int test_cmp_create_p10cr(void)
X509_REQ *p10cr = NULL;
fixture->bodytype = OSSL_CMP_PKIBODY_P10CR;
- fixture->err_code = CMP_R_ERROR_CREATING_P10CR;
+ fixture->err_code = CMP_R_ERROR_CREATING_CERTREQ;
fixture->expected = 1;
if (!TEST_ptr(p10cr = load_csr(pkcs10_f))
|| !TEST_true(set1_newPkey(ctx, newkey))
@@ -235,7 +235,7 @@ static int test_cmp_create_p10cr_null(void)
{
SETUP_TEST_FIXTURE(CMP_MSG_TEST_FIXTURE, set_up);
fixture->bodytype = OSSL_CMP_PKIBODY_P10CR;
- fixture->err_code = CMP_R_ERROR_CREATING_P10CR;
+ fixture->err_code = CMP_R_ERROR_CREATING_CERTREQ;
fixture->expected = 0;
if (!TEST_true(set1_newPkey(fixture->cmp_ctx, newkey))) {
tear_down(fixture);