If the option is specified it will now implicitly enable peer verification.
The s_client command was already behaved this way, so
s_server was updated to match the behavior of s_client.
Fixes #15134
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/28445)
*Igor Ustinov*
+ * Enabled Server verification by default in `s_server` when option
+ verify_return_error is enabled.
+
+ *Ryan Hooper*
+
OpenSSL 3.6
-----------
goto end;
break;
case OPT_VERIFY_RET_ERROR:
+ s_server_verify = SSL_VERIFY_PEER | SSL_VERIFY_CLIENT_ONCE;
verify_args.return_error = 1;
break;
case OPT_VERIFY_QUIET: