tdslite latest
C++ API reference
Loading...
Searching...
No Matches
tdsl::net::tdsl_asio_tls_options Struct 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)
 

Detailed Description

TLS settings of tdsl_netimpl_asio_tls.

Member Data Documentation

◆ verify

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.

◆ ca_file

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.

◆ host_name

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.

◆ alpn

bool tdsl::net::tdsl_asio_tls_options::alpn = {true}

Send the "tds/8.0" ALPN protocol ID (recommended by the TDS 8.0 specification)


The documentation for this struct was generated from the following file: