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>
This commit is contained in:
Kevin Burke 2018-01-23 22:11:51 -08:00 committed by Brad Fitzpatrick
parent c10e61424f
commit 5158aab7d6
9 changed files with 14 additions and 15 deletions

View 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. The IANA asserts that the database is in the public domain.
For more information, see 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 ftp://ftp.iana.org/tz/code/tz-link.htm
http://tools.ietf.org/html/rfc6557 http://tools.ietf.org/html/rfc6557

View File

@ -5,7 +5,7 @@
# This script rebuilds the time zone files using files # This script rebuilds the time zone files using files
# downloaded from the ICANN/IANA distribution. # 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. # Versions to use.
CODE=2017c CODE=2017c
@ -16,8 +16,8 @@ rm -rf work
mkdir work mkdir work
cd work cd work
mkdir zoneinfo mkdir zoneinfo
curl -L -O http://www.iana.org/time-zones/repository/releases/tzcode$CODE.tar.gz curl -L -O https://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/tzdata$DATA.tar.gz
tar xzf tzcode$CODE.tar.gz tar xzf tzcode$CODE.tar.gz
tar xzf tzdata$DATA.tar.gz tar xzf tzdata$DATA.tar.gz
@ -42,10 +42,9 @@ zip -0 -r ../../zoneinfo.zip *
cd ../.. cd ../..
echo echo
if [ "$1" = "-work" ]; then if [ "$1" = "-work" ]; then
echo Left workspace behind in work/. echo Left workspace behind in work/.
else else
rm -rf work rm -rf work
fi fi
echo New time zone files in zoneinfo.zip. echo New time zone files in zoneinfo.zip.

View File

@ -9,7 +9,7 @@
# content languages and encodings, so choose them carefully. # content languages and encodings, so choose them carefully.
# #
# Internet media types should be registered as described in RFC 4288. # 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 # MIME type (lowercased) Extensions
# ============================================ ========== # ============================================ ==========

View 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 // A list of cipher suite IDs that are, or have been, implemented by this
// package. // 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 ( const (
TLS_RSA_WITH_RC4_128_SHA uint16 = 0x0005 TLS_RSA_WITH_RC4_128_SHA uint16 = 0x0005
TLS_RSA_WITH_3DES_EDE_CBC_SHA uint16 = 0x000a TLS_RSA_WITH_3DES_EDE_CBC_SHA uint16 = 0x000a

View File

@ -91,7 +91,7 @@ const (
) )
// CurveID is the type of a TLS identifier for an elliptic curve. See // 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 type CurveID uint16
const ( const (
@ -102,7 +102,7 @@ const (
) )
// TLS Elliptic Curve Point Formats // 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 ( const (
pointFormatUncompressed uint8 = 0 pointFormatUncompressed uint8 = 0
) )

View File

@ -5,7 +5,7 @@
package http package http
// HTTP status codes as registered with IANA. // 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 ( const (
StatusContinue = 100 // RFC 7231, 6.2.1 StatusContinue = 100 // RFC 7231, 6.2.1
StatusSwitchingProtocols = 101 // RFC 7231, 6.2.2 StatusSwitchingProtocols = 101 // RFC 7231, 6.2.2

View File

@ -15,7 +15,7 @@ import (
// names and numbers for platforms that don't have a complete list of // names and numbers for platforms that don't have a complete list of
// protocol numbers. // 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. // On Unix, this map is augmented by readProtocols via lookupProtocol.
var protocols = map[string]int{ var protocols = map[string]int{

View File

@ -664,10 +664,10 @@ func srvString(srvs []*SRV) string {
} }
func TestLookupPort(t *testing.T) { 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. // 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. // restricted resource access and security reasons.
type test struct { type test struct {
network string network string

View File

@ -173,7 +173,7 @@ func (l *Location) lookup(sec int64) (name string, offset int, isDST bool, start
// times. // times.
// //
// The reference implementation in localtime.c from // 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: // implements the following algorithm for these cases:
// 1) If the first zone is unused by the transitions, use it. // 1) If the first zone is unused by the transitions, use it.
// 2) Otherwise, if there are transition times, and the first // 2) Otherwise, if there are transition times, and the first