Skip to content

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.

1 participant