-
Notifications
You must be signed in to change notification settings - Fork 129
Add Support for IPv4 and IPv6 X.509 Certificate Name Constraints #2340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: x509
Are you sure you want to change the base?
Conversation
Need to dig into the nature of this issue and associated fix #487 because it's impacting being able to specify |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## x509 #2340 +/- ##
==========================================
+ Coverage 78.78% 78.82% +0.04%
==========================================
Files 622 622
Lines 107977 108101 +124
Branches 15337 15345 +8
==========================================
+ Hits 85070 85216 +146
+ Misses 22254 22232 -22
Partials 653 653 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
The old scanf-based parser accepted all kinds of invalid inputs like: "1.2.3.4.5" "1.2.3.4 " "1.2.3. 4" " 1.2.3.4" "1.2.3.4." "1.2.3.+4" "1.2.3.4.example.test" "1.2.3.01" "1.2.3.0x1" Thanks to Amir Mohamadi for pointing this out in https://boringssl-review.googlesource.com/c/boringssl/+/68167. This is a different implementation since patching sscanf doesn't quite catch all the cases. Add a bunch of tests, some imported from Amr's patch to OpenSSL upstream, plus a bunch of my own. (IPv6 parsing is complicated!) Update-Note: The deprecated (and dangerous) string-based APIs for configuring X.509 extensions will no longer silently misinterpret some invalid inputs as IPv4 addresses. This was run through TGP internally without any issue. Change-Id: I66e223a466cc3e74df9f9ddc8aef3b6b6c790f7e Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/68567 Reviewed-by: Adam Langley <[email protected]> Commit-Queue: David Benjamin <[email protected]> Auto-Submit: David Benjamin <[email protected]> (cherry picked from commit ba62c812f01fb379f49f94a08a2d1282ce46e678)
2b5fb50
to
2e00c0a
Compare
Callouts
22afe5e is a cherry-pick from upstream that hardens textual parsing of IP addresses.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and the ISC license.