tdslite latest
C++ API reference
Loading...
Searching...
No Matches
tdsl::net::tdsl_esp_tls_options Struct Reference

TLS settings of tdsl_netimpl_esp_tls. More...

#include <tdslite-net/esp-idf/tdsl_netimpl_esp_tls.hpp>

Public Attributes

const char * ca_pem = {nullptr}
 PEM text of the CA certificate(s) to trust, NUL-terminated.
 
bool use_crt_bundle = {false}
 Trust the public CAs of ESP-IDF's certificate bundle (CONFIG_MBEDTLS_CERTIFICATE_BUNDLE), e.g.
 
const char * host_name = {nullptr}
 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; needs CONFIG_MBEDTLS_SSL_ALPN)
 

Detailed Description

TLS settings of tdsl_netimpl_esp_tls.

The strings are not copied: they must stay valid while connecting (string literals and static buffers do).

Member Data Documentation

◆ ca_pem

const char* tdsl::net::tdsl_esp_tls_options::ca_pem = {nullptr}

PEM text of the CA certificate(s) to trust, NUL-terminated.

Takes precedence over use_crt_bundle.

◆ use_crt_bundle

bool tdsl::net::tdsl_esp_tls_options::use_crt_bundle = {false}

Trust the public CAs of ESP-IDF's certificate bundle (CONFIG_MBEDTLS_CERTIFICATE_BUNDLE), e.g.

for Azure SQL

◆ host_name

const char* tdsl::net::tdsl_esp_tls_options::host_name = {nullptr}

Host name to check the certificate against, and to send as SNI.

nullptr: the host name given to connect(). Set this when connecting by IP address to a server whose certificate has only host names.

◆ alpn

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

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


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