From ec236c55919810764410e34a99c14fbdbc2303e5 Mon Sep 17 00:00:00 2001 From: "Henry D. Case" Date: Mon, 12 Mar 2018 14:16:52 +0000 Subject: [PATCH] [PATCH] all: use HTTPS for iana.org links This is merge of commit 5158aab7d662e274aed870ae6bf9cf8ae0786f5b from https://github.com/golang/go.git for go/crypto/tls only. 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. Reviewed-on: https://go-review.googlesource.com/89416 Reviewed-by: Brad Fitzpatrick --- cipher_suites.go | 2 +- common.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cipher_suites.go b/cipher_suites.go index 26dc92d..ef6ccde 100644 --- a/cipher_suites.go +++ b/cipher_suites.go @@ -387,7 +387,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 1.0 - 1.2 cipher suites. TLS_RSA_WITH_RC4_128_SHA uint16 = 0x0005 diff --git a/common.go b/common.go index e14b0ed..303d7b3 100644 --- a/common.go +++ b/common.go @@ -108,7 +108,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 // // TLS 1.3 refers to these as Groups, but this library implements only // curve-based ones anyway. See https://tools.ietf.org/html/draft-ietf-tls-tls13-18#section-4.2.4. @@ -138,7 +138,7 @@ type psk struct { } // 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 )