Commit 1d0a9eb8 authored by Joël Stemmer's avatar Joël Stemmer Committed by Brad Fitzpatrick

crypto/tls: fix typo in tls handshake error

Change-Id: Ia9f39250619ea6e94157efceddfb2e02d35f3ae2
Reviewed-on: https://go-review.googlesource.com/7041Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
parent 73a73e50
...@@ -229,7 +229,7 @@ Curves: ...@@ -229,7 +229,7 @@ Curves:
// The client is doing a fallback connection. // The client is doing a fallback connection.
if hs.clientHello.vers < c.config.maxVersion() { if hs.clientHello.vers < c.config.maxVersion() {
c.sendAlert(alertInappropriateFallback) c.sendAlert(alertInappropriateFallback)
return false, errors.New("tls: client using inppropriate protocol fallback") return false, errors.New("tls: client using inappropriate protocol fallback")
} }
break break
} }
......
...@@ -780,7 +780,7 @@ func TestFallbackSCSV(t *testing.T) { ...@@ -780,7 +780,7 @@ func TestFallbackSCSV(t *testing.T) {
config: serverConfig, config: serverConfig,
// OpenSSL 1.0.1j is needed for the -fallback_scsv option. // OpenSSL 1.0.1j is needed for the -fallback_scsv option.
command: []string{"openssl", "s_client", "-fallback_scsv"}, command: []string{"openssl", "s_client", "-fallback_scsv"},
expectHandshakeErrorIncluding: "inppropriate protocol fallback", expectHandshakeErrorIncluding: "inappropriate protocol fallback",
} }
runServerTestTLS11(t, test) runServerTestTLS11(t, test)
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment