![]() |
Home | Libraries | People | FAQ | More |
An external SSL context containing options to configure TLS.
asio::ssl::context* ssl_context {};
Relevant only for SSL connections (those that result on any_connection::uses_ssl
returning true
).
If the connection is configured to use TLS, an internal asio::ssl::stream
object will be created. If this member is set to a non-null value, this
internal object will be initialized using the passed context. This is the
only way to configure TLS options in any_connection
.
If the connection is configured to use TLS and this member is nullptr
, an internal asio::ssl::context
object with suitable default options will be created.
If set to non-null, the pointee object must be kept alive until all any_connection
objects constructed from *this
are destroyed.