diff options
author | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2021-07-12 15:34:20 +0200 |
---|---|---|
committer | Dr. David von Oheimb <dev@ddvo.net> | 2022-01-04 17:04:56 +0100 |
commit | b971d4198def0b29654e8fbf7987f7157741aed2 (patch) | |
tree | 34d74016bed13b911d601c9d3ec20d33d528f80b /test/cmp_client_test.c | |
parent | acef3b2f84b22c7cdb3cbc02fc8fc7b76cbb6ea7 (diff) | |
download | openssl-b971d4198def0b29654e8fbf7987f7157741aed2.tar.gz |
CMP mock server: add -ref_cert option and corresponding ossl_cmp_mock_srv_set1_refCert()
Fixes #16041
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16050)
Diffstat (limited to 'test/cmp_client_test.c')
-rw-r--r-- | test/cmp_client_test.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/cmp_client_test.c b/test/cmp_client_test.c index 70543b3b01..4e7b26c220 100644 --- a/test/cmp_client_test.c +++ b/test/cmp_client_test.c @@ -62,6 +62,7 @@ static CMP_SES_TEST_FIXTURE *set_up(const char *const test_case_name) fixture->test_case_name = test_case_name; if (!TEST_ptr(fixture->srv_ctx = ossl_cmp_mock_srv_new(libctx, NULL)) || !OSSL_CMP_SRV_CTX_set_accept_unprotected(fixture->srv_ctx, 1) + || !ossl_cmp_mock_srv_set1_refCert(fixture->srv_ctx, client_cert) || !ossl_cmp_mock_srv_set1_certOut(fixture->srv_ctx, client_cert) || (srv_cmp_ctx = OSSL_CMP_SRV_CTX_get0_cmp_ctx(fixture->srv_ctx)) == NULL |