Function esp_idf_hal::sys::esp_wifi_sta_wpa2_ent_set_cert_key

source ยท
pub unsafe extern "C" fn esp_wifi_sta_wpa2_ent_set_cert_key(
    client_cert: *const u8,
    client_cert_len: i32,
    private_key: *const u8,
    private_key_len: i32,
    private_key_passwd: *const u8,
    private_key_passwd_len: i32,
) -> i32
Expand description

@brief Set client certificate and key.

@deprecated This function is deprecated and will be removed in the future. Please use esp_eap_client_set_certificate_and_key instead.

@attention 1. The API only passes the parameter client_cert, private_key and private_key_passwd to the global pointer variable in wpa2 enterprise module. @attention 2. The client_cert, private_key and private_key_passwd should be zero terminated.

@param client_cert: point to address where stores the client certificate; @param client_cert_len: length of client certificate; @param private_key: point to address where stores the private key; @param private_key_len: length of private key, limited to 1~2048; @param private_key_password: point to address where stores the private key password; @param private_key_password_len: length of private key password;

@return

  • ESP_OK: succeed