]> Cypherpunks.ru repositories - gostls13.git/commit
crypto/x509: allow ":" in Common Name hostnames
authorFilippo Valsorda <filippo@golang.org>
Fri, 7 Sep 2018 16:58:14 +0000 (12:58 -0400)
committerFilippo Valsorda <filippo@golang.org>
Fri, 7 Sep 2018 17:28:27 +0000 (17:28 +0000)
commit7a0eb56466eb26704fad49caec228ba21831761e
tree1206695bec4c2df23d516a546c07a530499f813c
parent42257a262c94d839364113f2dbf4057731971fc1
crypto/x509: allow ":" in Common Name hostnames

At least one popular service puts a hostname which contains a ":"
in the Common Name field. On the other hand, I don't know of any name
constrained certificates that only work if we ignore such CNs.

Updates #24151

Change-Id: I2d813e3e522ebd65ab5ea5cd83390467a869eea3
Reviewed-on: https://go-review.googlesource.com/134076
Run-TryBot: Filippo Valsorda <filippo@golang.org>
Reviewed-by: Adam Langley <agl@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/crypto/x509/verify.go
src/crypto/x509/verify_test.go