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

Added an unrecognized_extensions hash to the Cert struct #259

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

dreemkiller
Copy link

This is a proposed solution to #258 .

When the feature std is enabled, adds an unrecognized_extensions member to the Cert struct in the form of a HashMap

Modifies the remember_extenstions function to place the data from any unrecognized extension into that HashMap, with the extension ID as the key.

Due to apparent limitations of rust, I was unable to find a way to use the existing oid macro for the match expressions. (hence the addition of [allow(unused_macros)] for the oid macro.

Suggestions on how this could be made cleaner are appreciated.

@dreemkiller
Copy link
Author

I've found a way to make it cleaner in the second commit.

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.

None yet

1 participant