RESTinio
|
Customizes extra settings needed for working with socket. More...
#include <tls.hpp>
Public Member Functions | |
socket_type_dependent_settings_t ()=default | |
socket_type_dependent_settings_t (socket_type_dependent_settings_t &&)=default | |
Settings & | tls_context (asio_ns::ssl::context context) & |
Setup an exclusive TLS-context for server's settings. More... | |
Settings && | tls_context (asio_ns::ssl::context context) && |
Setup an exclusive TLS-context for server's settings. More... | |
Settings & | tls_context (std::shared_ptr< asio_ns::ssl::context > shared_context) & |
Setup a shared TLS-context for server's settings. More... | |
Settings && | tls_context (std::shared_ptr< asio_ns::ssl::context > shared_context) && |
Setup a shared TLS-context for server's settings. More... | |
asio_ns::ssl::context | tls_context () |
std::shared_ptr< asio_ns::ssl::context > | giveaway_tls_context () |
Get away the TLS-context from settings. More... | |
Protected Member Functions | |
~socket_type_dependent_settings_t ()=default | |
Private Member Functions | |
Settings & | upcast_reference () |
Private Attributes | |
std::shared_ptr< asio_ns::ssl::context > | m_tls_context |
Customizes extra settings needed for working with socket.
Adds tls context setting.
|
protecteddefault |
|
default |
|
default |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Setup a shared TLS-context for server's settings.
This method can be used when several servers should share the same TLS context. Or if TLS should be shared with some other entity in an application.
Example:
|
inline |
Setup a shared TLS-context for server's settings.
This method can be used when several servers should share the same TLS context. Or if TLS should be shared with some other entity in an application.
Example:
|
inlineprivate |
|
private |