]> Cypherpunks repositories - gostls13.git/commit
crypto/x509: handle name constraints with cryptobyte
authorAdam Langley <agl@golang.org>
Mon, 30 Oct 2017 02:20:33 +0000 (19:20 -0700)
committerAdam Langley <agl@golang.org>
Sun, 12 Nov 2017 01:19:40 +0000 (01:19 +0000)
commitd005736213d7c9518ea1e05c63826783839dbed6
treee2de6acf17656cd813791757f741e521f991be77
parentd96ebf8a6d26f6f5bcf46f9da04def4ad8ec08d9
crypto/x509: handle name constraints with cryptobyte

This allows better precision and (the motivation) empty strings to
be handled correctly. With that in place tests for the behaviour of
empty name constraints can be added.

Also fixes a compatibility issue with NSS. See #22616.

Fixes #22616

Change-Id: I5139439bb58435d5f769828a4eebf8bed2d858e8
Reviewed-on: https://go-review.googlesource.com/74271
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/crypto/x509/name_constraints_test.go
src/crypto/x509/x509.go
src/go/build/deps_test.go