Skip to content

pkcs8: add KeyError enum#2305

Merged
tarcieri merged 1 commit intomasterfrom
pkcs8/add-keyerror
Apr 25, 2026
Merged

pkcs8: add KeyError enum#2305
tarcieri merged 1 commit intomasterfrom
pkcs8/add-keyerror

Conversation

@tarcieri
Copy link
Copy Markdown
Member

Adds an enum to be carried along with pkcs8::Error::KeyMalformed that can give more specific details about what is wrong with the key, e.g. is it being rejected because it's too short or too long.

This has been requested by people who say the existing variant doesn't give enough detail to diagnose the problem.

Adds an enum to be carried along with `pkcs8::Error::KeyMalformed` that
can give more specific details about what is wrong with the key,
e.g. is it being rejected because it's too short or too long.

This has been requested by people who say the existing variant doesn't
give enough detail to diagnose the problem.
@tarcieri tarcieri force-pushed the pkcs8/add-keyerror branch from a19ab42 to 241075e Compare April 25, 2026 15:42
@tarcieri tarcieri merged commit 967d9f1 into master Apr 25, 2026
199 of 217 checks passed
@tarcieri tarcieri deleted the pkcs8/add-keyerror branch April 25, 2026 16:10
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.

1 participant