-
Notifications
You must be signed in to change notification settings - Fork 3
Add a check for ca certificates file on storage #30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #30 +/- ##
=======================================
Coverage 29.85% 29.85%
=======================================
Files 27 27
Lines 1819 1819
=======================================
Hits 543 543
Misses 1276 1276 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Memory usage change @ fd5c648
Click for full report table
Click for full report CSV
|
@@ -71,4 +68,60 @@ bool C33FlashFormatter::formatPartition() { | |||
return true; | |||
} | |||
|
|||
bool C33FlashFormatter::checkCACertificatesPartition() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel it would be better to add a slightly modified version of checkCACertificatesPartition
and flashCACertificates
to the base class and reuse the same code for the H7 and C33. Do you agree?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Considering adding new interfaces to the base class like checkCACertificatesPartition(MBRBlockDevice bd, String base_path)
and flashCACertificates(MBRBlockDevice bd, String base_path)
, I don't think it's possible to move the checkCACertificatesPartition
and flashCACertificates
to the base class for two reasons:
- the base class is used for all other architectures, so they could not have the
FATFileSystem
andMBRBlockDevice
lib. - moving the
flashCACertificates
to the base class it requires to include the certificates.h file for every architectures and this could cause an increase of storage usage on every targets
Added a new check for verifying the presence of the CA Certificates file on storage and for writing it if missing.