Skip to content

Commit

Permalink
Add root CA cert bundle to src
Browse files Browse the repository at this point in the history
  • Loading branch information
fvanroie committed Feb 8, 2024
1 parent af6576b commit ce11627
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/hasp/hasp_attribute.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ LV_FONT_DECLARE(unscii_8_icon);
extern const char** btnmatrix_default_map; // memory pointer to lvgl default btnmatrix map
extern const char* msgbox_default_map[]; // memory pointer to lvgl default btnmatrix map

extern const uint8_t rootca_crt_bundle_start[] asm("_binary_data_cert_x509_crt_bundle_bin_start");
extern const uint8_t rootca_crt_bundle_end[] asm("_binary_data_cert_x509_crt_bundle_bin_end");

void my_image_release_resources(lv_obj_t* obj)
{
if(!obj) return;
Expand Down Expand Up @@ -1345,7 +1348,7 @@ static hasp_attribute_type_t special_attribute_src(lv_obj_t* obj, const char* pa
#if defined(ARDUINO) && defined(ARDUINO_ARCH_ESP32)
#if HASP_USE_WIFI > 0 || HASP_USE_ETHERNET > 0
HTTPClient http;
http.begin(payload);
http.begin(payload, (const char*)rootca_crt_bundle_start);
http.setTimeout(5000);
http.setConnectTimeout(5000);

Expand Down

0 comments on commit ce11627

Please sign in to comment.