mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-06-27 04:09:59 +08:00
Merge branch 'feature/digest_default_algorithm' into 'master'
esp_http_client: add default algorithm description on digest authorization See merge request sdk/ESP8266_RTOS_SDK!1132
This commit is contained in:
@ -81,6 +81,10 @@ char *http_auth_digest(const char *username, const char *password, esp_http_auth
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (auth_data->algorithm == NULL) {
|
||||
auth_data->algorithm = "md5";
|
||||
}
|
||||
|
||||
ha1 = calloc(1, MD5_MAX_LEN);
|
||||
HTTP_MEM_CHECK(TAG, ha1, goto _digest_exit);
|
||||
|
||||
|
Reference in New Issue
Block a user