Fix/ip address and string#41
Closed
JesusMcCloud wants to merge 2 commits into
Closed
Conversation
|
|
Contributor
Author
|
rebased manually |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
X509GeneralName.IpAddressnow accepts the RFC 5280 §4.2.1.10 name-constraints encoding (address plus subnet mask: 8 octets for IPv4, 32 for IPv6) in addition to baresubjectAltName/issuerAltNameaddresses (4/16 octets). It previously rejected the 8/32-octet form outright.Asn1String.IA5.isValidnow accepts the complete 7-bit IA5 alphabet0x00–0x7F, including DELETE (0x7F) (ITU-T T.50 / ISO 646); DELETE was previously rejected.Asn1String.UTF8.isValidnow reports UTF-8 well-formedness (RFC 3629) via a canonical round-trip instead of testing for the replacement character. A value that legitimately contains U+FFFD is no longer rejected, and malformed/overlong byte sequences are detected reliably.Asn1String.Teletex,Asn1String.General, andAsn1String.Graphicno longer reject legitimate 8-bit or multi-byte content (e.g. Latin-1 or CJK graphic characters). Their true repertoires (ISO 2022 / T.61) cannot be validated exactly, soisValidnow performs best-effort recognition:truefor a recognized subset,null("unknown") otherwise, and neverfalse; theirStringconstructors consequently never throw.isValidon these three types widened fromBooleantoBoolean?(the base-class type;nulldenotes "not validated / unknown").Asn1Stringrepertoires and validation semantics — a per-type table, best-effort/limitation warnings, and X.680 §41 / ITU-T T.50 / RFC 3629 references — in the low-level guide and API docs.