Add test_verify tests
Originally from https://github.com/openssl/openssl/pull/27507, with some
changes.
Co-authored-by: Richard Levitte <levitte@openssl.org>
(cherry picked from commit
927debaf7b4e83e47d3f016808acab947cc50ea2)
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/27551)
(cherry picked from commit
6143e70e8edde7f79fb5fb70b3c4cc548950f341)