-
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
Support hashing a certificate directory #96
Conversation
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). |
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. |
e4f9236
to
0b01822
Compare
Looks good, see only that the tests are passing, and I'll approve. |
e69a3c3
to
cd61c04
Compare
The build fails not because of my changes, something is wrong after gmock installation |
Does it work locally? |
Yes |
When trying to build locally with: |
Rebase and try again, since we had a recent merge. |
Signed-off-by: Ivan Rogach <[email protected]>
Signed-off-by: Ivan Rogach <[email protected]>
Signed-off-by: Ivan Rogach <[email protected]>
Co-authored-by: barsnick <[email protected]> Signed-off-by: jannejy <[email protected]>
Signed-off-by: Ivan Rogach <[email protected]>
Signed-off-by: Ivan Rogach <[email protected]>
41e3e01
to
4166a30
Compare
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.
Looks good. One note, in the header function get_verify_location
, also mention that the rehash is called each time this function is invoked.
Signed-off-by: Ivan Rogach <[email protected]>
Describe your changes
Issue ticket number and link
Checklist before requesting a review