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:09:38 +0000 (14:09 +0200)
commit23a4cbeb3ad80da3830f760f624599f24236bc38
treef8dd5da616ad7903e7c0ce0fbd247d4b5de2713c
parentb013765abfa80036dc779dd0e50602c57bb3bf95
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/20588)
test/recipes/25-test_verify.t