Patches for SSL/TLS hostname extension support (SNI) [sf#1939022] [#977]