Struct esp_idf_svc::tls::Config
source · pub struct Config<'a> {Show 15 fields
pub alpn_protos: Option<&'a [&'a str]>,
pub ca_cert: Option<X509<'a>>,
pub client_cert: Option<X509<'a>>,
pub client_key: Option<X509<'a>>,
pub client_key_password: Option<&'a str>,
pub non_block: bool,
pub use_secure_element: bool,
pub timeout_ms: u32,
pub use_global_ca_store: bool,
pub common_name: Option<&'a str>,
pub skip_common_name: bool,
pub keep_alive_cfg: Option<KeepAliveConfig>,
pub psk_hint_key: Option<PskHintKey<'a>>,
pub use_crt_bundle_attach: bool,
pub is_plain_tcp: bool,
}
Fields§
§alpn_protos: Option<&'a [&'a str]>
up to 9 ALPNs allowed, with avg 10 bytes for each name
ca_cert: Option<X509<'a>>
§client_cert: Option<X509<'a>>
§client_key: Option<X509<'a>>
§client_key_password: Option<&'a str>
§non_block: bool
§use_secure_element: bool
§timeout_ms: u32
§use_global_ca_store: bool
§common_name: Option<&'a str>
§skip_common_name: bool
§keep_alive_cfg: Option<KeepAliveConfig>
§psk_hint_key: Option<PskHintKey<'a>>
§use_crt_bundle_attach: bool
whether to use esp_crt_bundle_attach, see https://docs.espressif.com/projects/esp-idf/en/latest/esp32s2/api-reference/protocols/esp_crt_bundle.html
is_plain_tcp: bool