Test ocsp with invalid responses and the "-no_cert_checks" option
authorMatt Caswell <matt@openssl.org>
Wed, 13 Apr 2022 15:47:35 +0000 (16:47 +0100)
committerMatt Caswell <matt@openssl.org>
Tue, 3 May 2022 09:46:49 +0000 (10:46 +0100)
commit6ee1f4f40b5100ef2744866a727bb4b9ef8ea39e
tree9a83e02763cf7ec97745e12b61dd36b4c9fea2ed
parent21f89f542d745adbf1131338929ae538e200d50d
Test ocsp with invalid responses and the "-no_cert_checks" option

The "-no_cert_checks" option causes the flag OCSP_NOCHECKS to be set.
The bug fixed in the previous commit will cause the ocsp app to respond with
a success result in the case when the OCSP response signing certificate
fails to verify and -no_cert_checks is used - so we test that it fails in
this case.

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
test/recipes/80-test_ocsp.t