Function esp_idf_svc::hal::sys::esp_eap_client_set_certificate_and_key
source ยท pub unsafe extern "C" fn esp_eap_client_set_certificate_and_key(
client_cert: *const u8,
client_cert_len: i32,
private_key: *const u8,
private_key_len: i32,
private_key_password: *const u8,
private_key_passwd_len: i32,
) -> i32
Expand description
@brief Set client certificate and private key for EAP authentication.
This function sets the client certificate and private key to be used during authentication. Optionally, a private key password can be provided for encrypted private keys.
@attention 1. The client certificate, private key, and private key password are provided as pointers to the respective data arrays. @attention 2. The client_cert, private_key, and private_key_password should be zero-terminated.
@param[in] client_cert Pointer to the client certificate data. @param[in] client_cert_len Length of the client certificate data. @param[in] private_key Pointer to the private key data. @param[in] private_key_len Length of the private key data (limited to 1~4096 bytes). @param[in] private_key_password Pointer to the private key password data (optional). @param[in] private_key_passwd_len Length of the private key password data (can be 0 for no password).
@return
- ESP_OK: The certificate, private key, and password (if provided) were set successfully.