pub struct ServerConfig<'a> {
pub alpn_protos: Option<&'a [&'a str]>,
pub ca_cert: Option<X509<'a>>,
pub server_cert: Option<X509<'a>>,
pub server_key: Option<X509<'a>>,
pub server_key_password: Option<&'a str>,
pub use_secure_element: bool,
pub tls_handshake_timeout_ms: u32,
}Fields§
§alpn_protos: Option<&'a [&'a str]>up to 9 ALPNs allowed, with avg 10 bytes for each name
ca_cert: Option<X509<'a>>§server_cert: Option<X509<'a>>§server_key: Option<X509<'a>>§server_key_password: Option<&'a str>§use_secure_element: bool§tls_handshake_timeout_ms: u32Overall TLS handshake timeout in milliseconds.
0 means the ESP-TLS default (10 seconds).
Only honored by the blocking EspTls::negotiate_server path.
The non-blocking EspTls::negotiate_server_init /
EspTls::negotiate_server_continue path (and thus
EspAsyncTls::negotiate_server) is not bounded by it, so callers
there should enforce their own deadline.
Only available on ESP-IDF >= 5.5.0 (esp_tls_cfg_server::tls_handshake_timeout_ms).