-
Notifications
You must be signed in to change notification settings - Fork 159
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
pe: support basic certificates enumeration #354
Conversation
02750ab
to
086955b
Compare
CI failing because needs a rustfmt |
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.
let's fix the potential infinite loop/make it less likely with random inputs and some of the underflow/overflow questions, but otherwise this looks great, thank you!
Thank you for the mindful comments, will address them :) ; do you have an opinion on the tests @m4b ? |
086955b
to
cd7775c
Compare
ed08205
to
8876109
Compare
nitpick: |
Thanks for the comments @baloo ; will address them in the next hours 👍 |
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.
let's fix up the nits i posted about pub stuff and other details, and the comments as @baloo suggested and then this is ready to go
b40d7fd
to
e947c45
Compare
e947c45
to
7f30c65
Compare
Everything has been addressed, @m4b :) |
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.
This is good to go but we need to fix last issue with unimplemented
, then we can merge. thank you for your patience!
7f30c65
to
a3a6337
Compare
it was quite fast for NixOS contributor standards :P -- thank you for your guidance |
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.
this is great thank you @RaitoBezarius
this will likely be rolled up into the 0.7 release which includes 1 minor breaking change, are you ok to wait a bit @RaitoBezarius i prefer to have at least a few changes between releases (1-2 month cadence seems the pattern). if not i could cherry-pick this into a 0.6.2 branch if it's something urgent. |
can definitely wait because I want to send you more PRs on that subject so we can bundle a lot of them for this 0.7 :) |
released in 0.7.0, thank you so much for your patience! |
This is a rough PR to enable basic certificate enumeration in the PE structure.
I am planning to add support to transform the string binary data into a structured format using a PKCS#7 compatible library gated behind a feature flag maybe (?).
I'm not sure my implementation is optimal, let me know if I should simplify stuff.
For tests, I was planning to add PE binaries with a certificate and multiple certificates attached, checking the number of certificates found, would that work?
Later, I am also planning for write support, including attaching arbitrary signatures.