uthenticode icon indicating copy to clipboard operation
uthenticode copied to clipboard

Not all used headers are explicitly included

Open hugmyndakassi opened this issue 1 year ago • 1 comments

Hi,

wanted to bring another point to your attention.

I think you are technically missing an #include <stdexcept> in uthenticode.h between <optional> and <vector>. This doesn't cause an issue because evidently <optional> transiently includes <stdexcept>.

Furthermore at least for me an #include <openssl/bn.h> was missing as well in that same header. Without it I get an error for using BN_ptr = std::unique_ptr<BIGNUM, decltype(&BN_free)>;. This may be owed to the fact that I have adjusted the code in various places and bring some stuff into scope before including uthenticode and hide other stuff from it. I also don't make use of your #include <pe-parse/parse.h> ... it may play into that as well.

hugmyndakassi avatar Jan 30 '24 16:01 hugmyndakassi

Thanks! Yeah, any implicit header inclusions are unintentional. I'd be happy to accept a PR that makes them explicit.

woodruffw avatar Jan 30 '24 17:01 woodruffw