#[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
. It’s not copied nor freed by the client, user needs to clean up.
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. It’s not copied nor freed by the client, user needs to clean up.
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. It’s not copied nor freed by the client, user needs to clean up.
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 moresource§impl Default for esp_mqtt_client_config_t_credentials_t_authentication_t
impl Default for esp_mqtt_client_config_t_credentials_t_authentication_t
impl Copy for esp_mqtt_client_config_t_credentials_t_authentication_t
Auto Trait Implementations§
impl Freeze for esp_mqtt_client_config_t_credentials_t_authentication_t
impl RefUnwindSafe for esp_mqtt_client_config_t_credentials_t_authentication_t
impl !Send for esp_mqtt_client_config_t_credentials_t_authentication_t
impl !Sync for esp_mqtt_client_config_t_credentials_t_authentication_t
impl Unpin for esp_mqtt_client_config_t_credentials_t_authentication_t
impl UnwindSafe for esp_mqtt_client_config_t_credentials_t_authentication_t
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)