-
Notifications
You must be signed in to change notification settings - Fork 5
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
Return folder with verified certificates #96
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Ivan Rogach <[email protected]>
PR in libocpp: EVerest/libocpp#852 |
This doesn't look good to me. The behavior has been changed to only return the directory in which the bundle of roots is located. This will break all existing usage that depend on the file that contains the latest valid root, since not everyone is using directories. If one requires the directory in which the bundle is located, it can be extracted from the returned path, for example: Modifying code from existing functionality is never advised. However, if a separate function that is clear and returns the location instead the bundle file is required, then it's better to create a new one in order to preserve backwards compatibility. |
Actually, not only directory, that is also checked in the tests here.
Anyway, I agree, that the changing of the interface is anot good idea. I'll add the implementaion for the location (as well as files as directories). |
e202fa3
to
cf7e810
Compare
Signed-off-by: Ivan Rogach <[email protected]>
cf7e810
to
d8d064a
Compare
Now it looks good, however make sure that in libocpp code, you are handling both the case of a directory and of a bundle file. |
Describe your changes
Issue ticket number and link
Checklist before requesting a review