|
|
@@ -162,11 +162,13 @@ static esp_err_t _ota_write(esp_https_ota_t *https_ota_handle, const void *buffe
|
|
|
return err;
|
|
|
}
|
|
|
|
|
|
+#if !CONFIG_OTA_ALLOW_HTTP
|
|
|
static bool is_server_verification_enabled(esp_https_ota_config_t *ota_config) {
|
|
|
return (ota_config->http_config->cert_pem
|
|
|
|| ota_config->http_config->use_global_ca_store
|
|
|
- || !(ota_config->http_config->crt_bundle_attach == NULL));
|
|
|
+ || ota_config->http_config->crt_bundle_attach != NULL);
|
|
|
}
|
|
|
+#endif
|
|
|
|
|
|
esp_err_t esp_https_ota_begin(esp_https_ota_config_t *ota_config, esp_https_ota_handle_t *handle)
|
|
|
{
|