#[repr(C)]pub struct esp_mqtt_client_config_t_credentials_t_authentication_t {
pub password: *const u8,
pub certificate: *const u8,
pub certificate_len: usize,
pub key: *const u8,
pub key_len: usize,
pub key_password: *const u8,
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 u8
< MQTT password
certificate: *const u8
< 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 u8
< 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 u8
< 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. 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
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,
§unsafe fn clone_to_uninit(&self, dst: *mut u8)
unsafe fn clone_to_uninit(&self, dst: *mut u8)
clone_to_uninit
)