File tree Expand file tree Collapse file tree 9 files changed +7
-11
lines changed Expand file tree Collapse file tree 9 files changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -339,9 +339,9 @@ void NetworkClientSecure::setCACert(const char *rootCA) {
339339 _use_insecure = false ;
340340}
341341
342- void NetworkClientSecure::setCACertBundle (const uint8_t *bundle) {
343- if (bundle != NULL ) {
344- esp_crt_bundle_set (bundle, sizeof (bundle) );
342+ void NetworkClientSecure::setCACertBundle (const uint8_t *bundle, size_t size ) {
343+ if (bundle != NULL && size > 0 ) {
344+ esp_crt_bundle_set (bundle, size );
345345 attach_ssl_certificate_bundle (sslclient.get (), true );
346346 _use_ca_bundle = true ;
347347 } else {
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ class NetworkClientSecure : public NetworkClient {
7373 void setCertificate (const char *client_ca);
7474 void setPrivateKey (const char *private_key);
7575 bool loadCACert (Stream &stream, size_t size);
76- void setCACertBundle (const uint8_t *bundle);
76+ void setCACertBundle (const uint8_t *bundle, size_t size );
7777 bool loadCertificate (Stream &stream, size_t size);
7878 bool loadPrivateKey (Stream &stream, size_t size);
7979 bool verify (const char *fingerprint, const char *domain_name);
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ const char *service_name = "PROV_1234";
99const char *pop = " abcd1234" ;
1010
1111// GPIO for push button
12- #if CONFIG_IDF_TARGET_ESP32C3
12+ #if CONFIG_IDF_TARGET_ESP32C3 || CONFIG_IDF_TARGET_ESP32C6
1313static int gpio_0 = 9 ;
1414static int gpio_dimmer = 7 ;
1515#else
Original file line number Diff line number Diff line change 11{
22 "targets" : {
3- "esp32c6" : false ,
43 "esp32h2" : false
54 }
65}
Original file line number Diff line number Diff line change 1111const char *service_name = " PROV_1234" ;
1212const char *pop = " abcd1234" ;
1313
14- #if CONFIG_IDF_TARGET_ESP32C3
14+ #if CONFIG_IDF_TARGET_ESP32C3 || CONFIG_IDF_TARGET_ESP32C6
1515// GPIO for push button
1616static int gpio_reset = 9 ;
1717// GPIO for virtual device
Original file line number Diff line number Diff line change 11{
22 "targets" : {
3- "esp32c6" : false ,
43 "esp32h2" : false
54 }
65}
Original file line number Diff line number Diff line change 11{
22 "targets" : {
3- "esp32c6" : false ,
43 "esp32h2" : false
54 }
65}
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ const char *service_name = "PROV_1234";
99const char *pop = " abcd1234" ;
1010
1111// GPIO for push button
12- #if CONFIG_IDF_TARGET_ESP32C3
12+ #if CONFIG_IDF_TARGET_ESP32C3 || CONFIG_IDF_TARGET_ESP32C6
1313static int gpio_0 = 9 ;
1414static int gpio_switch = 7 ;
1515#else
Original file line number Diff line number Diff line change 11{
22 "targets" : {
3- "esp32c6" : false ,
43 "esp32h2" : false
54 }
65}
You can’t perform that action at this time.
0 commit comments