mirror of
https://github.com/openssl/openssl.git
synced 2026-10-29 00:45:27 +08:00
Enable peer verification with s_server's verify_return_error option
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)
This commit is contained in:
1 parent
32ec975213
commit
e5f01903ed
2 files changed
+6
No files matched your search
@@ -41,6 +41,11 @@ OpenSSL 4.0
|
||||
|
||||
*Igor Ustinov*
|
||||
|
||||
* Enabled Server verification by default in `s_server` when option
|
||||
verify_return_error is enabled.
|
||||
|
||||
*Ryan Hooper*
|
||||
|
||||
OpenSSL 3.6
|
||||
-----------
|
||||
|
||||
|
||||
@@ -1568,6 +1568,7 @@ int s_server_main(int argc, char *argv[])
|
||||
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:
|
||||
|
||||
Reference in new issue
Block a user