|
tdslite latest
C++ API 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) | |
TLS settings of tdsl_netimpl_esp_tls.
The strings are not copied: they must stay valid while connecting (string literals and static buffers do).
| 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.
| 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
| 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.
| 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)