#[repr(C)]pub struct esp_mqtt_client_config_t_credentials_t_authentication_t {
pub password: *const i8,
pub certificate: *const i8,
pub certificate_len: usize,
pub key: *const i8,
pub key_len: usize,
pub key_password: *const i8,
pub key_password_len: i32,
pub use_secure_element: bool,
pub ds_data: *mut c_void,
}
Expand description
Client authentication
Fields related to client authentication by broker
For mutual authentication using TLS, user could select certificate and key, secure element or digital signature peripheral if available.
Fields§
§password: *const i8
< MQTT password
certificate: *const i8
< Certificate for ssl mutual authentication, not required if mutual
authentication is not needed. Must be provided with key
.
certificate_len: usize
< Length of the buffer pointed to by certificate.
key: *const i8
< Private key for SSL mutual authentication, not required if mutual authentication
is not needed. If it is not NULL, also certificate
has to be provided.
key_len: usize
< Length of the buffer pointed to by key.
key_password: *const i8
< Client key decryption password, not PEM nor DER, if provided
key_password_len
must be correctly set.
key_password_len: i32
< Length of the password pointed to by key_password
use_secure_element: bool
< Enable secure element, available in ESP32-ROOM-32SE, for SSL connection
ds_data: *mut c_void
< Carrier of handle for digital signature parameters, digital signature peripheral is available in some Espressif devices.
Trait Implementations§
source§impl Clone for esp_mqtt_client_config_t_credentials_t_authentication_t
impl Clone for esp_mqtt_client_config_t_credentials_t_authentication_t
source§fn clone(&self) -> esp_mqtt_client_config_t_credentials_t_authentication_t
fn clone(&self) -> esp_mqtt_client_config_t_credentials_t_authentication_t
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more