diff options
author | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2020-05-29 17:14:14 +0200 |
---|---|---|
committer | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2020-06-13 15:13:21 +0200 |
commit | c4a9e3ebbbbc2dc371b4fea5fa62120ed14ecaa7 (patch) | |
tree | f38ee0f3448b660e89366b35fb4d5fb992241d08 /test/cmp_vfy_test.c | |
parent | Bug fix in ossl_cmp_hdr_init(): sould not remember recipient as expected sender (diff) | |
download | openssl-c4a9e3ebbbbc2dc371b4fea5fa62120ed14ecaa7.tar.xz openssl-c4a9e3ebbbbc2dc371b4fea5fa62120ed14ecaa7.zip |
Move part of OSSL_CMP_validate_msg() to ossl_cmp_msg_check_update()
as checking expected_sender and adding caPubs is not part of msg validation.
Also constify a couple of internal and public functions related to cmp_vfy.c
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/11998)
Diffstat (limited to 'test/cmp_vfy_test.c')
-rw-r--r-- | test/cmp_vfy_test.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/cmp_vfy_test.c b/test/cmp_vfy_test.c index 22588aef1a..583e7c2fbb 100644 --- a/test/cmp_vfy_test.c +++ b/test/cmp_vfy_test.c @@ -123,7 +123,8 @@ static int test_verify_popo_bad(void) static int execute_validate_msg_test(CMP_VFY_TEST_FIXTURE *fixture) { return TEST_int_eq(fixture->expected, - OSSL_CMP_validate_msg(fixture->cmp_ctx, fixture->msg)); + ossl_cmp_msg_check_update(fixture->cmp_ctx, fixture->msg, + NULL, 0)); } static int execute_validate_cert_path_test(CMP_VFY_TEST_FIXTURE *fixture) |