diff options
author | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2020-03-10 17:32:57 +0100 |
---|---|---|
committer | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2020-03-25 14:10:18 +0100 |
commit | 7e765f46a6b3a5b2fc48e10657bea7016e5c5e4b (patch) | |
tree | 10aa335bdb8955d13781f0139d49b3a30b7b5578 /test/cmp_msg_test.c | |
parent | b4ba2b7ce0933bede5d3b59a5abbde8fa3de2228 (diff) |
Chunk 9 of CMP contribution to OpenSSL: CMP client and related tests
Certificate Management Protocol (CMP, RFC 4210) extension to OpenSSL
Also includes CRMF (RFC 4211) and HTTP transfer (RFC 6712).
Adds the CMP and CRMF API to libcrypto and the "cmp" app to the CLI.
Adds extensive documentation and tests.
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com>
(Merged from https://github.com/openssl/openssl/pull/11300)
Diffstat (limited to 'test/cmp_msg_test.c')
-rw-r--r-- | test/cmp_msg_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/cmp_msg_test.c b/test/cmp_msg_test.c index 3919480610..2111a2127d 100644 --- a/test/cmp_msg_test.c +++ b/test/cmp_msg_test.c @@ -162,6 +162,7 @@ static int test_cmp_create_ir_protection_fails(void) fixture->expected = 0; if (!TEST_true(OSSL_CMP_CTX_set1_pkey(fixture->cmp_ctx, newkey)) || !TEST_true(SET_OPT_UNPROTECTED_SEND(fixture->cmp_ctx, 0)) + /* newkey used by default for signing does not match cert: */ || !TEST_true(OSSL_CMP_CTX_set1_clCert(fixture->cmp_ctx, cert))) { tear_down(fixture); fixture = NULL; @@ -357,8 +358,7 @@ static int test_cmp_create_genm(void) SETUP_TEST_FIXTURE(CMP_MSG_TEST_FIXTURE, set_up); fixture->expected = 1; iv = OSSL_CMP_ITAV_create(OBJ_nid2obj(NID_id_it_implicitConfirm), NULL); - if (!TEST_true(SET_OPT_UNPROTECTED_SEND(fixture->cmp_ctx, 1)) - || !TEST_ptr(iv) + if (!TEST_ptr(iv) || !TEST_true(OSSL_CMP_CTX_push0_genm_ITAV(fixture->cmp_ctx, iv))) { OSSL_CMP_ITAV_free(iv); tear_down(fixture); |