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.
This is a proposed solution to #258 .
When the feature
std
is enabled, adds anunrecognized_extensions
member to theCert
struct in the form of aHashMap
Modifies the
remember_extenstions
function to place the data from any unrecognized extension into thatHashMap
, 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 theoid
macro.Suggestions on how this could be made cleaner are appreciated.