|
tdslite latest
C++ API reference
|
TLS settings of tdsl_netimpl_asio_tls. More...
#include <tdslite-net/asio/tdsl_netimpl_asio_tls.hpp>
Public Attributes | |
| bool | verify = {true} |
| Verify the server's certificate chain and host name. | |
| std::string | ca_file = {} |
| PEM file with the CA certificate(s) to trust. | |
| std::string | host_name = {} |
| Host name to check the certificate against, and to send as SNI. | |
| bool | alpn = {true} |
| Send the "tds/8.0" ALPN protocol ID (recommended by the TDS 8.0 specification) | |
TLS settings of tdsl_netimpl_asio_tls.
| bool tdsl::net::tdsl_asio_tls_options::verify = {true} |
Verify the server's certificate chain and host name.
Turning this off makes the connection open to man-in-the-middle attacks.
| std::string tdsl::net::tdsl_asio_tls_options::ca_file = {} |
PEM file with the CA certificate(s) to trust.
Empty: the system's default certificate store.
| std::string tdsl::net::tdsl_asio_tls_options::host_name = {} |
Host name to check the certificate against, and to send as SNI.
Empty: the host name given to connect(). Set this when connecting by IP address.
| bool tdsl::net::tdsl_asio_tls_options::alpn = {true} |
Send the "tds/8.0" ALPN protocol ID (recommended by the TDS 8.0 specification)