Ensure s_client sends SNI data when used with -proxy
authorMatt Caswell <matt@openssl.org>
Thu, 9 Dec 2021 16:27:47 +0000 (16:27 +0000)
committerMatt Caswell <matt@openssl.org>
Wed, 29 Dec 2021 15:44:52 +0000 (15:44 +0000)
commit5713edd873e87a620fbb8be90c7bc1a51fa43c5c
tree9fc53fcc81c985a3430070dc1a6fd8fca156cecf
parentdb82fa2ac4ac9bed62e82d96561964aee9969d6b
Ensure s_client sends SNI data when used with -proxy

The use of -proxy prevented s_client from correctly sending the target
hostname as SNI data.

Fixes #17232

Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17248)

(cherry picked from commit ea24196ef224d3aa3aaecb8000004bb7a0a100a2)
apps/s_client.c