mirror of
https://github.com/stakwork/sphinx-key.git
synced 2026-01-31 21:34:19 +01:00
sphinx-key: https ota
This commit is contained in:
@@ -9,5 +9,6 @@ CONFIG_FATFS_LFN_STACK=y
|
||||
#CONFIG_FREERTOS_HZ=1000
|
||||
|
||||
# Workaround for https://github.com/espressif/esp-idf/issues/7631
|
||||
#CONFIG_MBEDTLS_CERTIFICATE_BUNDLE=n
|
||||
CONFIG_MBEDTLS_CERTIFICATE_BUNDLE=y
|
||||
CONFIG_MBEDTLS_CERTIFICATE_BUNDLE_DEFAULT_CMN=y
|
||||
#CONFIG_MBEDTLS_CERTIFICATE_BUNDLE_DEFAULT_FULL=n
|
||||
|
||||
@@ -31,7 +31,7 @@ fn get_update(params: OtaParams) -> Result<()> {
|
||||
buffer_size: Some(BUFFER_LEN),
|
||||
buffer_size_tx: Some(BUFFER_LEN / 3),
|
||||
follow_redirects_policy: FollowNone,
|
||||
use_global_ca_store: true,
|
||||
crt_bundle_attach: Some(esp_idf_svc::sys::esp_crt_bundle_attach),
|
||||
..Default::default()
|
||||
};
|
||||
let mut reader = EspHttpConnection::new(&configuration)?;
|
||||
@@ -75,7 +75,7 @@ pub fn validate_ota_message(params: OtaParams) -> Result<()> {
|
||||
buffer_size: Some(BUFFER_LEN / 3),
|
||||
buffer_size_tx: Some(BUFFER_LEN / 3),
|
||||
follow_redirects_policy: FollowNone,
|
||||
use_global_ca_store: true,
|
||||
crt_bundle_attach: Some(esp_idf_svc::sys::esp_crt_bundle_attach),
|
||||
..Default::default()
|
||||
};
|
||||
let mut reader = EspHttpConnection::new(&configuration)?;
|
||||
|
||||
Reference in New Issue
Block a user