Skip to content

Commit ae814b3

Browse files
committed
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 <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]>
1 parent b4de73f commit ae814b3

File tree

3 files changed

+14
-12
lines changed

3 files changed

+14
-12
lines changed

acme/autocert/autocert_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -226,11 +226,11 @@ func TestGetCertificate_unicodeIDN(t *testing.T) {
226226
man := &Manager{Prompt: AcceptTOS}
227227
defer man.stopRenew()
228228

229-
hello := clientHelloInfo("σσσ.com", algECDSA)
230-
testGetCertificate(t, man, "xn--4xaaa.com", hello)
229+
hello := clientHelloInfo("éé.com", algECDSA)
230+
testGetCertificate(t, man, "xn--9caa.com", hello)
231231

232-
hello = clientHelloInfo("σςΣ.com", algECDSA)
233-
testGetCertificate(t, man, "xn--4xaaa.com", hello)
232+
hello = clientHelloInfo("éÉ.com", algECDSA)
233+
testGetCertificate(t, man, "xn--9caa.com", hello)
234234
}
235235

236236
func TestGetCertificate_mixedcase(t *testing.T) {
@@ -949,14 +949,14 @@ func TestCache(t *testing.T) {
949949
}
950950

951951
func TestHostWhitelist(t *testing.T) {
952-
policy := HostWhitelist("example.com", "EXAMPLE.ORG", "*.example.net", "σςΣ.com")
952+
policy := HostWhitelist("example.com", "EXAMPLE.ORG", "*.example.net", "éÉ.com")
953953
tt := []struct {
954954
host string
955955
allow bool
956956
}{
957957
{"example.com", true},
958958
{"example.org", true},
959-
{"xn--4xaaa.com", true},
959+
{"xn--9caa.com", true}, // éé.com
960960
{"one.example.com", false},
961961
{"two.example.org", false},
962962
{"three.example.net", false},

go.mod

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ module golang.org/x/crypto
33
go 1.17
44

55
require (
6-
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110
6+
golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2
77
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1
88
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1
9-
golang.org/x/text v0.3.3 // indirect
109
)
10+
11+
require golang.org/x/text v0.3.6 // indirect

go.sum

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110 h1:qWPm9rbaAMKs8Bq/9LRpbMqxWRVUAQwMI9fVrssnTfw=
2-
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
1+
golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2 h1:CIJ76btIcR3eFI5EgSo6k1qKw9KJexJuRLI9G7Hp5wE=
2+
golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
33
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
4+
golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
45
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1 h1:SrN+KX8Art/Sf4HNj6Zcz06G7VEz+7w9tdXTPOZ7+l4=
56
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
67
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1 h1:v+OssWQX+hTHEmOBgwxdZxK4zHq3yOs8F9J7mk0PY8E=
78
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
8-
golang.org/x/text v0.3.3 h1:cokOdA+Jmi5PJGXLlLllQSgYigAEfHXJAERHVMaCc2k=
9-
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
9+
golang.org/x/text v0.3.6 h1:aRYxNxv6iGQlyVaZmk6ZgYEDa+Jg18DxebPSrd6bg1M=
10+
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
1011
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=

0 commit comments

Comments
 (0)