mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-31 11:17:20 +02:00
feat(esp_http_client): Added support for OTA using ds peripheral for TLS
This commit is contained in:
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* SPDX-FileCopyrightText: 2015-2022 Espressif Systems (Shanghai) CO LTD
|
* SPDX-FileCopyrightText: 2015-2023 Espressif Systems (Shanghai) CO LTD
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
@ -722,6 +722,12 @@ esp_http_client_handle_t esp_http_client_init(const esp_http_client_config_t *co
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if CONFIG_ESP_TLS_USE_DS_PERIPHERAL
|
||||||
|
if (config->ds_data != NULL) {
|
||||||
|
esp_transport_ssl_set_ds_data(ssl, config->ds_data);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if (config->client_key_pem) {
|
if (config->client_key_pem) {
|
||||||
if (!config->client_key_len) {
|
if (!config->client_key_len) {
|
||||||
esp_transport_ssl_set_client_key_data(ssl, config->client_key_pem, strlen(config->client_key_pem));
|
esp_transport_ssl_set_client_key_data(ssl, config->client_key_pem, strlen(config->client_key_pem));
|
||||||
|
@ -160,6 +160,9 @@ typedef struct {
|
|||||||
#if CONFIG_ESP_TLS_USE_SECURE_ELEMENT
|
#if CONFIG_ESP_TLS_USE_SECURE_ELEMENT
|
||||||
bool use_secure_element; /*!< Enable this option to use secure element */
|
bool use_secure_element; /*!< Enable this option to use secure element */
|
||||||
#endif
|
#endif
|
||||||
|
#if CONFIG_ESP_TLS_USE_DS_PERIPHERAL
|
||||||
|
void *ds_data; /*!< Pointer for digital signature peripheral context, see ESP-TLS Documentation for more details */
|
||||||
|
#endif
|
||||||
} esp_http_client_config_t;
|
} esp_http_client_config_t;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user