Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tls/sni: skip SNI check if we are client or server_name not set
The servername_callback is also called when the server requests a certificate in the ServerHello. However, the server will not usually send us the server_name extension. So skip the SNI check if we are client. Also continue if the server_name extension is not present.
- Loading branch information