[php-src] PR #11145: [WIP] Fix GH-9356: Incomplete validation of IP Address fields in subject…
| From: | lucasnetau | Date: | Fri, 28 Apr 2023 01:22:40 +0000 |
| Subject: | [php-src] PR #11145: [WIP] Fix GH-9356: Incomplete validation of IP Address fields in subject… | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-22390@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/11145
Author: lucasnetau
…AltNames
IPv6 addresses are valid entries in subjectAltNames. Certificate Authorities may issue certificates
including IPv6 addresses except if they fall within addresses in the RFC 4193 range. Google and
CloudFlare provide IPv6 addresses in their DNS over HTTPS services.
Internal CAs do not have those restrictions and can issue Unique local addresses in certificates.
My C is a bit rusty and this is my first attempt at fixing this issue. I would appreciate any
feedback, and assistance in implementing the Window support for inet_pton (which headers to
include), advice on if we need conditionals to see if IPV6 support is enabled and what to do on
systems without inet_pton support (any still around in the supported systems?)