SNI is part of SSL API, not Curl. (unless I missed something in new API-s).

to enable SNI extension support, try something like this: 

1. my_ssl = SSL_new( my_ssl_ctx ); 

2. SSL_set_tlsext_host_name( my_ssl _, host.c_str() );
 



    On Wednesday, 25 October 2017, 03:38:25 GMT+1, Jack via curl-library 
<[email protected]> wrote:  
 
 Hi, I find one CURLOPT_CONNECT_TO, but doc said:

The "connect to" host and port are only used to establish the network 
connection. They do NOT affect the host and port that are used for TLS/SSL 
(e.g. SNI, certificate verification) or for the application protocols.

Does libcurl have other option to support SNI in SSL client hello?
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:  https://curl.haxx.se/mail/etiquette.html  
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html

Reply via email to