mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-04 05:04:33 +02:00
Merge branch 'bugfix/set_password' into 'master'
esp_http_client: const corrections for esp_http_client_set_password() (GitHub PR) Closes IDFGH-5163 See merge request espressif/esp-idf!13498
This commit is contained in:
@@ -348,7 +348,7 @@ esp_err_t esp_http_client_get_password(esp_http_client_handle_t client, char **v
|
|||||||
return ESP_OK;
|
return ESP_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
esp_err_t esp_http_client_set_password(esp_http_client_handle_t client, char *password)
|
esp_err_t esp_http_client_set_password(esp_http_client_handle_t client, const char *password)
|
||||||
{
|
{
|
||||||
if (client == NULL) {
|
if (client == NULL) {
|
||||||
ESP_LOGE(TAG, "client must not be NULL");
|
ESP_LOGE(TAG, "client must not be NULL");
|
||||||
|
@@ -334,7 +334,7 @@ esp_err_t esp_http_client_get_password(esp_http_client_handle_t client, char **v
|
|||||||
* - ESP_OK
|
* - ESP_OK
|
||||||
* - ESP_ERR_INVALID_ARG
|
* - ESP_ERR_INVALID_ARG
|
||||||
*/
|
*/
|
||||||
esp_err_t esp_http_client_set_password(esp_http_client_handle_t client, char *password);
|
esp_err_t esp_http_client_set_password(esp_http_client_handle_t client, const char *password);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Set http request auth_type.
|
* @brief Set http request auth_type.
|
||||||
|
Reference in New Issue
Block a user