Show Server Name Indication (SNI) in SSL:TRACE output
Brought to you by:
ia97lies
It would be nice if httest could output the Server Name Indication if SSL:TRACE is set. With the attached patch applied, you can use the following EXPECT block to match a specific SNI.
EXPECT headers "Server Name Indication: the-expected-sni$"
The previous patch segfaults in multithreaded tests that use TLS.
See attachment for a fixed patch that doesn't segfault.