diff options
| author | Kevin Burke <kev@inburke.com> | 2018-01-23 22:11:51 -0800 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@golang.org> | 2018-02-13 18:36:48 +0000 |
| commit | 5158aab7d662e274aed870ae6bf9cf8ae0786f5b (patch) | |
| tree | 40bdac5105b073ff0f269cea5f6acf84a561a7da /src | |
| parent | c10e61424f9c17c2972a438287ff9ac90d6b55a4 (diff) | |
| download | go-5158aab7d662e274aed870ae6bf9cf8ae0786f5b.tar.xz | |
all: use HTTPS for iana.org links
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>
Diffstat (limited to 'src')
| -rw-r--r-- | src/crypto/tls/cipher_suites.go | 2 | ||||
| -rw-r--r-- | src/crypto/tls/common.go | 4 | ||||
| -rw-r--r-- | src/net/http/status.go | 2 | ||||
| -rw-r--r-- | src/net/lookup.go | 2 | ||||
| -rw-r--r-- | src/net/lookup_test.go | 4 | ||||
| -rw-r--r-- | src/time/zoneinfo.go | 2 |
6 files changed, 8 insertions, 8 deletions
diff --git a/src/crypto/tls/cipher_suites.go b/src/crypto/tls/cipher_suites.go index beb0f1926d..41f9103f0d 100644 --- a/src/crypto/tls/cipher_suites.go +++ b/src/crypto/tls/cipher_suites.go @@ -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 diff --git a/src/crypto/tls/common.go b/src/crypto/tls/common.go index 646b107958..f331c11bda 100644 --- a/src/crypto/tls/common.go +++ b/src/crypto/tls/common.go @@ -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 ) diff --git a/src/net/http/status.go b/src/net/http/status.go index 98645b7d74..eb55757be6 100644 --- a/src/net/http/status.go +++ b/src/net/http/status.go @@ -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 diff --git a/src/net/lookup.go b/src/net/lookup.go index 85e472932f..6844b1118f 100644 --- a/src/net/lookup.go +++ b/src/net/lookup.go @@ -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{ diff --git a/src/net/lookup_test.go b/src/net/lookup_test.go index bfb872551c..d0fc8c345d 100644 --- a/src/net/lookup_test.go +++ b/src/net/lookup_test.go @@ -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 diff --git a/src/time/zoneinfo.go b/src/time/zoneinfo.go index 96ff8d3970..d7e830be9d 100644 --- a/src/time/zoneinfo.go +++ b/src/time/zoneinfo.go @@ -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 |
