From: Joël Stemmer Date: Fri, 6 Mar 2015 13:59:12 +0000 (+0100) Subject: crypto/tls: fix typo in tls handshake error X-Git-Tag: go1.5beta1~1669 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=1d0a9eb8ab223089f50bc2e3f9466edc96d2f3e1;p=gostls13.git crypto/tls: fix typo in tls handshake error Change-Id: Ia9f39250619ea6e94157efceddfb2e02d35f3ae2 Reviewed-on: https://go-review.googlesource.com/7041 Reviewed-by: Brad Fitzpatrick Run-TryBot: Brad Fitzpatrick --- diff --git a/src/crypto/tls/handshake_server.go b/src/crypto/tls/handshake_server.go index c87da50df9..7675770ded 100644 --- a/src/crypto/tls/handshake_server.go +++ b/src/crypto/tls/handshake_server.go @@ -229,7 +229,7 @@ Curves: // The client is doing a fallback connection. if hs.clientHello.vers < c.config.maxVersion() { c.sendAlert(alertInappropriateFallback) - return false, errors.New("tls: client using inppropriate protocol fallback") + return false, errors.New("tls: client using inappropriate protocol fallback") } break } diff --git a/src/crypto/tls/handshake_server_test.go b/src/crypto/tls/handshake_server_test.go index 46a90d3a36..f0ef26000a 100644 --- a/src/crypto/tls/handshake_server_test.go +++ b/src/crypto/tls/handshake_server_test.go @@ -780,7 +780,7 @@ func TestFallbackSCSV(t *testing.T) { config: serverConfig, // OpenSSL 1.0.1j is needed for the -fallback_scsv option. command: []string{"openssl", "s_client", "-fallback_scsv"}, - expectHandshakeErrorIncluding: "inppropriate protocol fallback", + expectHandshakeErrorIncluding: "inappropriate protocol fallback", } runServerTestTLS11(t, test) }