pub unsafe extern "C" fn esp_wifi_sta_wpa2_ent_set_cert_key(
    client_cert: *const c_uchar,
    client_cert_len: c_int,
    private_key: *const c_uchar,
    private_key_len: c_int,
    private_key_passwd: *const c_uchar,
    private_key_passwd_len: c_int
) -> esp_err_t
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