Tomas Susanka 7 роки тому
committed by Peter Wu
джерело
коміт
4b944d1428
4 змінених файлів з 4 додано та 4 видалено
  1. +1
    -1
      cipher_suites.go
  2. +1
    -1
      handshake_client.go
  3. +1
    -1
      handshake_client_test.go
  4. +1
    -1
      handshake_server_test.go

+ 1
- 1
cipher_suites.go Переглянути файл

@@ -63,7 +63,7 @@ const (
)

// A cipherSuite is a specific combination of key agreement, cipher and MAC
// function. All cipher suites currently assume RSA key agreement.
// function.
type cipherSuite struct {
id uint16
// the lengths, in bytes, of the key material needed for each component.


+ 1
- 1
handshake_client.go Переглянути файл

@@ -804,7 +804,7 @@ func mutualProtocol(protos, preferenceProtos []string) (string, bool) {
return protos[0], true
}

// hostnameInSNI converts name into an approriate hostname for SNI.
// hostnameInSNI converts name into an appropriate hostname for SNI.
// Literal IP addresses and absolute FQDNs are not permitted as SNI values.
// See https://tools.ietf.org/html/rfc6066#section-3.
func hostnameInSNI(name string) string {


+ 1
- 1
handshake_client_test.go Переглянути файл

@@ -866,7 +866,7 @@ func TestHandshakeClientALPNMatch(t *testing.T) {
// sctsBase64 contains data from `openssl s_client -serverinfo 18 -connect ritter.vg:443`
const sctsBase64 = "ABIBaQFnAHUApLkJkLQYWBSHuxOizGdwCjw1mAT5G9+443fNDsgN3BAAAAFHl5nuFgAABAMARjBEAiAcS4JdlW5nW9sElUv2zvQyPoZ6ejKrGGB03gjaBZFMLwIgc1Qbbn+hsH0RvObzhS+XZhr3iuQQJY8S9G85D9KeGPAAdgBo9pj4H2SCvjqM7rkoHUz8cVFdZ5PURNEKZ6y7T0/7xAAAAUeX4bVwAAAEAwBHMEUCIDIhFDgG2HIuADBkGuLobU5a4dlCHoJLliWJ1SYT05z6AiEAjxIoZFFPRNWMGGIjskOTMwXzQ1Wh2e7NxXE1kd1J0QsAdgDuS723dc5guuFCaR+r4Z5mow9+X7By2IMAxHuJeqj9ywAAAUhcZIqHAAAEAwBHMEUCICmJ1rBT09LpkbzxtUC+Hi7nXLR0J+2PmwLp+sJMuqK+AiEAr0NkUnEVKVhAkccIFpYDqHOlZaBsuEhWWrYpg2RtKp0="

func TestHandshakClientSCTs(t *testing.T) {
func TestHandshakeClientSCTs(t *testing.T) {
config := testConfig.Clone()

scts, err := base64.StdEncoding.DecodeString(sctsBase64)


+ 1
- 1
handshake_server_test.go Переглянути файл

@@ -924,7 +924,7 @@ func TestHandshakeServerEmptyCertificates(t *testing.T) {
testClientHelloFailure(t, serverConfig, clientHello, "no certificates")
}

// TestCipherSuiteCertPreferance ensures that we select an RSA ciphersuite with
// TestCipherSuiteCertPreference ensures that we select an RSA ciphersuite with
// an RSA certificate and an ECDSA ciphersuite with an ECDSA certificate.
func TestCipherSuiteCertPreferenceECDSA(t *testing.T) {
config := testConfig.Clone()


Завантаження…
Відмінити
Зберегти