When calling the legacy callback, ensure we catch the case where it
authorbeck <beck@openbsd.org>
Thu, 9 Sep 2021 15:09:43 +0000 (15:09 +0000)
committerbeck <beck@openbsd.org>
Thu, 9 Sep 2021 15:09:43 +0000 (15:09 +0000)
commit6cf343156dba058ea7a1988fcc62f6bc493da6a1
treea008436280bf44d4b2e0378c1f23f7f7833d6af5
parenta2d98599e3c69439489c0bfafa67f0ebef23661b
When calling the legacy callback, ensure we catch the case where it
has decided to change a succeess to a failure and change the error code.

Fixes a regression in the openssl-ruby tests which expect to test this
functionality.

ok tb@
lib/libcrypto/x509/x509_verify.c