@@ -101,7 +101,7 @@ class http_client_config
101
101
, m_set_user_nativehandle_options([](native_handle)->void {})
102
102
#if !defined(_WIN32) && !defined(__cplusplus_winrt)
103
103
, m_ssl_context_callback([](boost::asio::ssl::context&)->void {})
104
- , m_tlsext_host_name (true )
104
+ , m_tlsext_sni_enabled (true )
105
105
#endif
106
106
#if defined(_WIN32) && !defined(__cplusplus_winrt)
107
107
, m_buffer_request(false )
@@ -350,22 +350,22 @@ class http_client_config
350
350
}
351
351
352
352
// / <summary>
353
- // / Gets the TLS server name indication (SNI) property .
353
+ // / Gets the TLS extension server name indication (SNI) status .
354
354
// / </summary>
355
355
// / <returns>True if TLS server name indication is enabled, false otherwise.</returns>
356
- bool tlsext_host_name () const
356
+ bool is_tlsext_sni_enabled () const
357
357
{
358
- return m_tlsext_host_name ;
358
+ return m_tlsext_sni_enabled ;
359
359
}
360
360
361
361
// / <summary>
362
- // / Sets the TLS server name indication (SNI) property .
362
+ // / Sets the TLS extension server name indication (SNI) status .
363
363
// / </summary>
364
- // / <param name="tlsext_host_name ">False to disable the TLS (ClientHello) extension for server name indication, true otherwise.</param>
365
- // / <remarks>Note: This setting is required in most virtual hosting scenarios.</remarks>
366
- void set_tlsext_host_name (bool tlsext_host_name )
364
+ // / <param name="tlsext_sni_enabled ">False to disable the TLS (ClientHello) extension for server name indication, true otherwise.</param>
365
+ // / <remarks>Note: This setting is enabled by default as it is required in most virtual hosting scenarios.</remarks>
366
+ void set_tlsext_sni_enabled (bool tlsext_sni_enabled )
367
367
{
368
- m_tlsext_host_name = tlsext_host_name ;
368
+ m_tlsext_sni_enabled = tlsext_sni_enabled ;
369
369
}
370
370
#endif
371
371
@@ -392,7 +392,7 @@ class http_client_config
392
392
393
393
#if !defined(_WIN32) && !defined(__cplusplus_winrt)
394
394
std::function<void (boost::asio::ssl::context&)> m_ssl_context_callback;
395
- bool m_tlsext_host_name ;
395
+ bool m_tlsext_sni_enabled ;
396
396
#endif
397
397
#if defined(_WIN32) && !defined(__cplusplus_winrt)
398
398
bool m_buffer_request;
0 commit comments