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 12:01:58 +0000 (14:01 +0200)
commitdda529ecc2d085488eef60235ef553dc5fd6e6dc
tree9824b58cf0a60653d9753adcf2c88cca24bee9fb
parent1dd43e0709fece299b15208f36cc7c76209ba0bb
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/20587)
test/recipes/25-test_verify.t