Revise expire callback regress to use chains with expired certificates.
authorjsing <jsing@openbsd.org>
Mon, 17 Oct 2022 18:44:36 +0000 (18:44 +0000)
committerjsing <jsing@openbsd.org>
Mon, 17 Oct 2022 18:44:36 +0000 (18:44 +0000)
commite71b8735aea3b55d8b69d0ff41cd60e4cfa3ff2e
tree296ae8cf9665ddf4c5a0925671d3fe01db2129f8
parent7cbb8da06aacd01f5038f977ecd8459307d433cb
Revise expire callback regress to use chains with expired certificates.

Rather than using X509_STORE_CTX_set_time() (which is resulting all
certificates in the chain being treated as expired), use chains that have
an expired leaf or expired intermediate. This triggers a different code
path, which is currently mishandled (and hence failing).

Also ensure that the resulting error and error depth match what we expect
them to be.
regress/lib/libcrypto/x509/expirecallback.c