]> Cypherpunks.ru repositories - gostls13.git/commitdiff
all: use HTTPS for iana.org links
authorKevin Burke <kev@inburke.com>
Wed, 24 Jan 2018 06:11:51 +0000 (22:11 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 13 Feb 2018 18:36:48 +0000 (18:36 +0000)
iana.org, www.iana.org and data.iana.org all present a valid TLS
certificate, so let's use it when fetching data or linking to
resources to avoid errors in transit.

Change-Id: Ib3ce7c19789c4e9d982a776b61d8380ddc63194d
Reviewed-on: https://go-review.googlesource.com/89416
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
lib/time/README
lib/time/update.bash
misc/nacl/testdata/mime.types
src/crypto/tls/cipher_suites.go
src/crypto/tls/common.go
src/net/http/status.go
src/net/lookup.go
src/net/lookup_test.go
src/time/zoneinfo.go

index ffce9b0e08508f2b0e7c495b7132f41f857e4460..aab4daa7e2df07e01a7318905eb35917d23d2bf5 100644 (file)
@@ -3,7 +3,7 @@ the code and data maintained as part of the IANA Time Zone Database.
 The IANA asserts that the database is in the public domain.
 
 For more information, see
-http://www.iana.org/time-zones
+https://www.iana.org/time-zones
 ftp://ftp.iana.org/tz/code/tz-link.htm
 http://tools.ietf.org/html/rfc6557
 
index b54fc9e4f612bb2bda9b01849bc29f9b934621b3..26ad79d52def5731f8304397ecbca383a41c96f5 100755 (executable)
@@ -5,7 +5,7 @@
 
 # This script rebuilds the time zone files using files
 # downloaded from the ICANN/IANA distribution.
-# Consult http://www.iana.org/time-zones for the latest versions.
+# Consult https://www.iana.org/time-zones for the latest versions.
 
 # Versions to use.
 CODE=2017c
@@ -16,8 +16,8 @@ rm -rf work
 mkdir work
 cd work
 mkdir zoneinfo
-curl -L -O http://www.iana.org/time-zones/repository/releases/tzcode$CODE.tar.gz
-curl -L -O http://www.iana.org/time-zones/repository/releases/tzdata$DATA.tar.gz
+curl -L -O https://www.iana.org/time-zones/repository/releases/tzcode$CODE.tar.gz
+curl -L -O https://www.iana.org/time-zones/repository/releases/tzdata$DATA.tar.gz
 tar xzf tzcode$CODE.tar.gz
 tar xzf tzdata$DATA.tar.gz
 
@@ -42,10 +42,9 @@ zip -0 -r ../../zoneinfo.zip *
 cd ../..
 
 echo
-if [ "$1" = "-work" ]; then 
+if [ "$1" = "-work" ]; then
        echo Left workspace behind in work/.
 else
        rm -rf work
 fi
 echo New time zone files in zoneinfo.zip.
-
index 2c41bd2c005e08ee5ab7ceb12c44b9b4cac9bb01..81a415e9e66779f51d8dbd9157a5f1f6480514b4 100644 (file)
@@ -9,7 +9,7 @@
 # content languages and encodings, so choose them carefully.
 #
 # Internet media types should be registered as described in RFC 4288.
-# The registry is at <http://www.iana.org/assignments/media-types/>.
+# The registry is at <https://www.iana.org/assignments/media-types/>.
 #
 # MIME type (lowercased)                       Extensions
 # ============================================ ==========
index beb0f1926d89947d9603f0dbc2561ae08320d67f..41f9103f0dc55c15e2056c44ea3b4cc39f53d252 100644 (file)
@@ -364,7 +364,7 @@ func mutualCipherSuite(have []uint16, want uint16) *cipherSuite {
 // A list of cipher suite IDs that are, or have been, implemented by this
 // package.
 //
-// Taken from http://www.iana.org/assignments/tls-parameters/tls-parameters.xml
+// Taken from https://www.iana.org/assignments/tls-parameters/tls-parameters.xml
 const (
        TLS_RSA_WITH_RC4_128_SHA                uint16 = 0x0005
        TLS_RSA_WITH_3DES_EDE_CBC_SHA           uint16 = 0x000a
index 646b107958ac4c7fdf83199f7bef8eecf1db1ef5..f331c11bdaa8106b7f060fafcfb0fea7e7506604 100644 (file)
@@ -91,7 +91,7 @@ const (
 )
 
 // CurveID is the type of a TLS identifier for an elliptic curve. See
-// http://www.iana.org/assignments/tls-parameters/tls-parameters.xml#tls-parameters-8
+// https://www.iana.org/assignments/tls-parameters/tls-parameters.xml#tls-parameters-8
 type CurveID uint16
 
 const (
@@ -102,7 +102,7 @@ const (
 )
 
 // TLS Elliptic Curve Point Formats
-// http://www.iana.org/assignments/tls-parameters/tls-parameters.xml#tls-parameters-9
+// https://www.iana.org/assignments/tls-parameters/tls-parameters.xml#tls-parameters-9
 const (
        pointFormatUncompressed uint8 = 0
 )
index 98645b7d746637e384df443702cd3d90be8d9800..eb55757be677edae42ff6b371d0a505882cb4cf6 100644 (file)
@@ -5,7 +5,7 @@
 package http
 
 // HTTP status codes as registered with IANA.
-// See: http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml
+// See: https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml
 const (
        StatusContinue           = 100 // RFC 7231, 6.2.1
        StatusSwitchingProtocols = 101 // RFC 7231, 6.2.2
index 85e472932fcda7a8bb8d6bbfea488e202cb0636a..6844b1118f8083b42fab376fb9a22f5ff2bc78ee 100644 (file)
@@ -15,7 +15,7 @@ import (
 // names and numbers for platforms that don't have a complete list of
 // protocol numbers.
 //
-// See http://www.iana.org/assignments/protocol-numbers
+// See https://www.iana.org/assignments/protocol-numbers
 //
 // On Unix, this map is augmented by readProtocols via lookupProtocol.
 var protocols = map[string]int{
index bfb872551c04c77f8bf9afc91a5189b419aba84b..d0fc8c345d986d1fb770a93b1ef51aed0c9d7bf0 100644 (file)
@@ -664,10 +664,10 @@ func srvString(srvs []*SRV) string {
 }
 
 func TestLookupPort(t *testing.T) {
-       // See http://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml
+       // See https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml
        //
        // Please be careful about adding new test cases.
-       // There are platforms having incomplete mappings for
+       // There are platforms which have incomplete mappings for
        // restricted resource access and security reasons.
        type test struct {
                network string
index 96ff8d39708f5948473029387eee867e7c9eb703..d7e830be9d97fb08630ce5fae75d302365abf910 100644 (file)
@@ -173,7 +173,7 @@ func (l *Location) lookup(sec int64) (name string, offset int, isDST bool, start
 // times.
 //
 // The reference implementation in localtime.c from
-// http://www.iana.org/time-zones/repository/releases/tzcode2013g.tar.gz
+// https://www.iana.org/time-zones/repository/releases/tzcode2013g.tar.gz
 // implements the following algorithm for these cases:
 // 1) If the first zone is unused by the transitions, use it.
 // 2) Otherwise, if there are transition times, and the first