-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify the internal representation of
RDN.Attribute.Value
(#156)
* Simplify the internal representation of RDNAttribute.Value Motivation The 1.1.0 release included a patch (#154) that supported converting RDNAttribute values into strings. This patch missed that the `.any` case may also have strings in it. While investigating this limitation, I realised that the constructor function was excessively complex. While it attempted to coerce based on extra information in the ASN.1 specification, it always fell back into the `.any` case. This meant that as a practical matter we always took the same few paths, and so could safely simplify the code. Modifications Simplify DER decoding of RDNAttribute.Values. Introspect the .any cases for UTF8 strings and Printable strings when converting to String. Result Faster construction, more flexible representation. * normalise `RDN.Value.Storage` representation --------- Co-authored-by: Cory Benfield <[email protected]>
- Loading branch information
Showing
2 changed files
with
58 additions
and
298 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.