feat(esp_http_client): SHA256 support in digest auth

Added support for using SHA256 algorithm while calculating
digest auth in HTTP client connection

Closes https://github.com/espressif/esp-idf/issues/12383
This commit is contained in:
Harshit Malpani
2023-10-19 18:27:08 +05:30
parent 5ec9f498bc
commit 803ad150cf
5 changed files with 119 additions and 20 deletions

View File

@@ -55,6 +55,17 @@ void http_utils_trim_whitespace(char **str);
*/
char *http_utils_get_string_between(const char *str, const char *begin, const char *end);
/**
* @brief Returns a string that contains the part after the search string till the end of the source string.
* It will allocate a new memory space for this string, so you need to free it when no longer used
*
* @param[in] str The source string
* @param[in] begin The search string
*
* @return The string between begin and the end of str
*/
char *http_utils_get_string_after(const char *str, const char *begin);
/**
* @brief Join 2 strings to one
* It will allocate a new memory space for this string, so you need to free it when no longer use