#[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 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
source§fn default() -> esp_mqtt_client_config_t_credentials_t_authentication_t
fn default() -> 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: 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
)§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
)