File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
components/esp_modem/test/target_ota/components/manual_ota Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,10 @@ bool manual_ota::begin()
35
35
esp_transport_handle_t tcp = esp_transport_tcp_init ();
36
36
ssl_ = esp_transport_batch_tls_init (tcp, max_buffer_size_);
37
37
http_.config_ .transport = ssl_;
38
+ if (http_.config_ .cert_pem == nullptr || common_name_ == nullptr ) {
39
+ ESP_LOGE (TAG, " TLS with no verification is not supported" );
40
+ return fail ();
41
+ }
38
42
if (!esp_transport_batch_set_ca_cert (ssl_, http_.config_ .cert_pem , 0 )) {
39
43
return fail ();
40
44
}
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ class manual_ota {
40
40
/* *
41
41
* @brief Set common name of the server to verify
42
42
*/
43
- const char *common_name_;
43
+ const char *common_name_{} ;
44
44
/* *
45
45
* @brief Wrapper around the http client -- Please set the http config
46
46
*/
You can’t perform that action at this time.
0 commit comments