Skip to content
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

fix: Regression in parsing arbitrary pem file blocks #32399

Merged
merged 1 commit into from
Apr 22, 2024

Conversation

johanandren
Copy link
Member

@johanandren johanandren commented Apr 22, 2024

For parsing EDCSA a pem file contains multiple blocks, I caused a regression by only extracting private keys to support that in #32341 however the pem parser allowed reading arbitrary pem blocks before that.

This fixes the regression and allows for reading arbitrary entries again, to support the EDCSA use case it introduces a separate few APIs to read all pem entries, and hand a sequence of entries to the DerPrivateKeyLoader to load the first supported private key or fail if none exists.

Copy link
Contributor

@efgpinto efgpinto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@johanandren johanandren merged commit 519b735 into main Apr 22, 2024
5 checks passed
@johanandren johanandren deleted the wip-pem-loading-regression branch April 22, 2024 10:59
@johanandren johanandren added this to the 2.9.3 milestone Apr 22, 2024
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