Modify Attribute, RelativeDistinguishedName and add AttributeTypeAndValue to match RFCs #84
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull request modifies
Attribute
,RelativeDistinguishedName
and addsAttributeTypeAndValue
to match RFCs, as detailed below.1. Update
Attribute
Change
value
tovalues
; useSetOf<AttributeValue>
instead ofAttributeValue
.Defined in module PKIX1Explicit88 (https://www.itu.int/wftp3/Public/t/fl/ietf/rfc/rfc3280/PKIX1Explicit88.html)
Also defined in RFC 5652 (https://www.ietf.org/rfc/rfc5652)
Attribute
uses in Rasn:AttributeCertificateInfo
from RFC 5755 (https://www.ietf.org/rfc/rfc5755)ACClearAttrs
(AttributeCertificateClearAttributes
) from RFC 5755 (https://www.ietf.org/rfc/rfc5755)SubjectDirectoryAttributes
from RFC 5280 (https://www.ietf.org/rfc/rfc5280)Five sets from RFC 5652 (https://www.ietf.org/rfc/rfc5652):
SignedAttributes
UnsignedAttributes
UnprotectedAttributes
AuthAttributes
UnauthAttributes
2. Add
AttributeTypeAndValue
Defined in module PKIX1Explicit88 (https://www.itu.int/wftp3/Public/t/fl/ietf/rfc/rfc3280/PKIX1Explicit88.html).
3. Update
RelativeDistinguishedName
Change collection type from
Attribute
toAttributeTypeAndValue
RelativeDistinguishedName
from RFC 5280 (https://www.ietf.org/rfc/rfc5280):