Add a Certificate Policies Test
authorMatt Caswell <matt@openssl.org>
Tue, 7 Mar 2023 17:07:57 +0000 (17:07 +0000)
committerTomas Mraz <tomas@openssl.org>
Tue, 28 Mar 2023 11:45:14 +0000 (13:45 +0200)
commite8c359e51ff3372a19a784a8c865f1472774f181
tree76b54c57e08ce28067165c27e88e6a6a21d6b28d
parentfacfb1ab745646e97a1920977ae4a9965ea61d5c
Add a Certificate Policies Test

Test that a valid certificate policy is accepted and that an invalid
certificate policy is rejected. Specifically we are checking that a
leaf certificate with an invalid policy is detected.

Related-to: CVE-2023-0465
Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20586)
test/recipes/25-test_verify.t