commit | a40a33ecc2b7ea53d0497da82d842ac456fc030d | [log] [tgz] |
---|---|---|
author | Ryan Sleevi <rsleevi@chromium.org> | Mon Jul 08 17:36:52 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Mon Jul 08 17:36:52 2019 |
tree | f19c5fdcbcd60e5575ed8c94412bfe45aa36785e | |
parent | 724c83d118f8f2f160137fa335b1958044db48b6 [diff] |
Ensure hostnames are valid DNS-or-IP names before cert validation The existing logic relies on the caller to ensure that the hostname supplied to the certificate verification routines is a valid domain name or IP address. This changes that from being a caller-expected contract to being an API guaranteed contract, by fast-failing any hosts that aren't in one of those two forms. Bug: 935085 Change-Id: I1ea1f02e5cb7b2bb2b07cd936cf5eac349437f74 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1686731 Commit-Queue: Ryan Sleevi <rsleevi@chromium.org> Reviewed-by: David Benjamin <davidben@chromium.org> Cr-Commit-Position: refs/heads/master@{#675277}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .