Merge branch 'fix/incorrect_sha256_auth_digest_v5.5' into 'release/v5.5'

fix(esp_http_client): fix incorrect digest calculation for SHA256 auth digest (v5.5)

See merge request espressif/esp-idf!44845
This commit is contained in:
Mahavir Jain
2026-01-08 09:25:53 +05:30
+1 -2
View File
@@ -150,8 +150,7 @@ char *http_auth_digest(const char *username, const char *password, esp_http_auth
ESP_LOGD(TAG, "%s %s %s %s", "Digest", username, auth_data->realm, password);
if ((strcasecmp(auth_data->algorithm, "md5-sess") == 0) ||
(strcasecmp(auth_data->algorithm, "SHA256") == 0) ||
(strcasecmp(auth_data->algorithm, "SHA-256") == 0)) {
(strcasecmp(auth_data->algorithm, "SHA-256-sess") == 0)) {
if (digest_func(ha1, "%s:%s:%016llx", ha1, auth_data->nonce, auth_data->cnonce) <= 0) {
goto _digest_exit;
}