Add support for Server Name Indication
[project/ustream-ssl.git] / ustream-openssl.h
index ef786f2810dddd2f194ac0585f99758b91fd3c02..afff22b1a65c1c14325b876fbe3e8261eeda0943 100644 (file)
@@ -39,4 +39,9 @@ static inline void __ustream_ssl_update_peer_cn(struct ustream_ssl *us)
 {
 }
 
+static inline void __ustream_ssl_set_server_name(struct ustream_ssl *us)
+{
+       SSL_set_tlsext_host_name(us->ssl, us->server_name);
+}
+
 #endif