mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-10-20 22:31:30 +08:00
feat(http): Modify for esp8266
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
|
||||
#include "esp_netif.h"
|
||||
#include "lwip/sockets.h"
|
||||
#include "esp32/rom/md5_hash.h"
|
||||
#include "rom/md5_hash.h"
|
||||
#include "mbedtls/base64.h"
|
||||
|
||||
#include "esp_system.h"
|
||||
@@ -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