Skip to content

Conversation

@olszomal
Copy link
Collaborator

@olszomal olszomal commented Apr 28, 2025

Enhanced verification logic for PKCS#7 signedData structures by introducing a dedicated verify_pkcs7_data() function. This update addresses compatibility with older OpenSSL versions (< 3.0.5) and ensures correct handling of detached signed content using a BIO buffer.

The change enables support for PKCS#7 inner content (RFC 2315, section 7), as per OpenSSL PR#22575.

Refactored timestamp and authenticode verification functions to reduce duplication and properly manage X509_STORE and X509_CRL structures.

Fixed broken preprocessor conditions for OpenSSL < 3.0 in read_crypto_params().

@mtrojnar
Copy link
Owner

mtrojnar commented Apr 29, 2025

Improve how? Could you be a bit more specific in your commit description? Does this commit add a new feature or fix a bug? What is that feature or bug? Or, maybe you are merely improving coding style with no intended functional changes. It's hard for me to review your code without first understanding its intended purpose. The longer and less trivial your changes are, the more important providing a specific description gets.

Enhanced verification logic for PKCS#7 signedData structures by introducing a dedicated `verify_pkcs7_data()` function. This update addresses compatibility with older OpenSSL versions (< 3.0.5) and ensures correct handling of detached signed content using a BIO buffer.
The change enables support for PKCS#7 inner content (RFC 2315, section 7), as per OpenSSL PR#22575.
Refactored timestamp and authenticode verification functions to reduce duplication and properly manage X509_STORE and X509_CRL structures.
@olszomal
Copy link
Collaborator Author

Good catch – details elaborated.

@mtrojnar mtrojnar merged commit 68e8845 into mtrojnar:master May 1, 2025
9 checks passed
@olszomal olszomal deleted the content branch September 22, 2025 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants