all: upgrade x/net to latest
Update acme/autocert test to not depend on whether idna.Lookup uses transitional processing (Go 1.17 and earlier) or nontransitional processing (Go 1.18 and later). Change-Id: I29ca0aaca0ac75a932919a4c7cf8e9fca033b497 Reviewed-on: https://go-review.googlesource.com/c/crypto/+/364014 Trust: Damien Neil <dneil@google.com> Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
@@ -226,11 +226,11 @@ func TestGetCertificate_unicodeIDN(t *testing.T) {
|
||||
man := &Manager{Prompt: AcceptTOS}
|
||||
defer man.stopRenew()
|
||||
|
||||
hello := clientHelloInfo("σσσ.com", algECDSA)
|
||||
testGetCertificate(t, man, "xn--4xaaa.com", hello)
|
||||
hello := clientHelloInfo("éé.com", algECDSA)
|
||||
testGetCertificate(t, man, "xn--9caa.com", hello)
|
||||
|
||||
hello = clientHelloInfo("σςΣ.com", algECDSA)
|
||||
testGetCertificate(t, man, "xn--4xaaa.com", hello)
|
||||
hello = clientHelloInfo("éÉ.com", algECDSA)
|
||||
testGetCertificate(t, man, "xn--9caa.com", hello)
|
||||
}
|
||||
|
||||
func TestGetCertificate_mixedcase(t *testing.T) {
|
||||
@@ -949,14 +949,14 @@ func TestCache(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestHostWhitelist(t *testing.T) {
|
||||
policy := HostWhitelist("example.com", "EXAMPLE.ORG", "*.example.net", "σςΣ.com")
|
||||
policy := HostWhitelist("example.com", "EXAMPLE.ORG", "*.example.net", "éÉ.com")
|
||||
tt := []struct {
|
||||
host string
|
||||
allow bool
|
||||
}{
|
||||
{"example.com", true},
|
||||
{"example.org", true},
|
||||
{"xn--4xaaa.com", true},
|
||||
{"xn--9caa.com", true}, // éé.com
|
||||
{"one.example.com", false},
|
||||
{"two.example.org", false},
|
||||
{"three.example.net", false},
|
||||
|
||||
Reference in New Issue
Block a user