mirror of
https://github.com/espressif/esp-idf.git
synced 2025-10-02 18:10:57 +02:00
feat(esp_http_client): Make https_async request under CERT BUNDLE config
Make https_async rqeuest under MBEDTLS_CERTIFICATE_BUNDLE config
This commit is contained in:
committed by
Hrushikesh Bhosale
parent
1a615729d5
commit
f38b8fec92
@@ -638,6 +638,7 @@ static void http_perform_as_stream_reader(void)
|
||||
free(buffer);
|
||||
}
|
||||
|
||||
#if CONFIG_MBEDTLS_CERTIFICATE_BUNDLE
|
||||
static void https_async(void)
|
||||
{
|
||||
esp_http_client_config_t config = {
|
||||
@@ -696,6 +697,7 @@ static void https_async(void)
|
||||
}
|
||||
esp_http_client_cleanup(client);
|
||||
}
|
||||
#endif
|
||||
|
||||
static void https_with_invalid_url(void)
|
||||
{
|
||||
@@ -860,7 +862,9 @@ static void http_test_task(void *pvParameters)
|
||||
http_redirect_to_https();
|
||||
http_download_chunk();
|
||||
http_perform_as_stream_reader();
|
||||
#if CONFIG_MBEDTLS_CERTIFICATE_BUNDLE
|
||||
https_async();
|
||||
#endif
|
||||
https_with_invalid_url();
|
||||
http_native_request();
|
||||
#if CONFIG_MBEDTLS_CERTIFICATE_BUNDLE
|
||||
|
Reference in New Issue
Block a user