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) {
339
339
_use_insecure = false ;
340
340
}
341
341
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 );
345
345
attach_ssl_certificate_bundle (sslclient.get (), true );
346
346
_use_ca_bundle = true ;
347
347
} else {
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ class NetworkClientSecure : public NetworkClient {
73
73
void setCertificate (const char *client_ca);
74
74
void setPrivateKey (const char *private_key);
75
75
bool loadCACert (Stream &stream, size_t size);
76
- void setCACertBundle (const uint8_t *bundle);
76
+ void setCACertBundle (const uint8_t *bundle, size_t size );
77
77
bool loadCertificate (Stream &stream, size_t size);
78
78
bool loadPrivateKey (Stream &stream, size_t size);
79
79
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";
9
9
const char *pop = " abcd1234" ;
10
10
11
11
// GPIO for push button
12
- #if CONFIG_IDF_TARGET_ESP32C3
12
+ #if CONFIG_IDF_TARGET_ESP32C3 || CONFIG_IDF_TARGET_ESP32C6
13
13
static int gpio_0 = 9 ;
14
14
static int gpio_dimmer = 7 ;
15
15
#else
Original file line number Diff line number Diff line change 1
1
{
2
2
"targets" : {
3
- "esp32c6" : false ,
4
3
"esp32h2" : false
5
4
}
6
5
}
Original file line number Diff line number Diff line change 11
11
const char *service_name = " PROV_1234" ;
12
12
const char *pop = " abcd1234" ;
13
13
14
- #if CONFIG_IDF_TARGET_ESP32C3
14
+ #if CONFIG_IDF_TARGET_ESP32C3 || CONFIG_IDF_TARGET_ESP32C6
15
15
// GPIO for push button
16
16
static int gpio_reset = 9 ;
17
17
// GPIO for virtual device
Original file line number Diff line number Diff line change 1
1
{
2
2
"targets" : {
3
- "esp32c6" : false ,
4
3
"esp32h2" : false
5
4
}
6
5
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"targets" : {
3
- "esp32c6" : false ,
4
3
"esp32h2" : false
5
4
}
6
5
}
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ const char *service_name = "PROV_1234";
9
9
const char *pop = " abcd1234" ;
10
10
11
11
// GPIO for push button
12
- #if CONFIG_IDF_TARGET_ESP32C3
12
+ #if CONFIG_IDF_TARGET_ESP32C3 || CONFIG_IDF_TARGET_ESP32C6
13
13
static int gpio_0 = 9 ;
14
14
static int gpio_switch = 7 ;
15
15
#else
Original file line number Diff line number Diff line change 1
1
{
2
2
"targets" : {
3
- "esp32c6" : false ,
4
3
"esp32h2" : false
5
4
}
6
5
}
You can’t perform that action at this time.
0 commit comments