#[repr(C)]pub struct esp_mqtt_client_config_t_credentials_t_authentication_t {
pub password: *const c_char,
pub certificate: *const c_char,
pub certificate_len: usize,
pub key: *const c_char,
pub key_len: usize,
pub key_password: *const c_char,
pub key_password_len: c_int,
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 c_char
< MQTT password
certificate: *const c_char
< 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 c_char
< 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 c_char
< Client key decryption password, not PEM nor DER, if provided
key_password_len
must be correctly set.
key_password_len: c_int
< 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