]> Cypherpunks repositories - gostls13.git/commit
crypto/tls: better error for oversized handshake messages.
authorAdam Langley <agl@golang.org>
Thu, 10 Mar 2016 22:52:01 +0000 (14:52 -0800)
committerAdam Langley <agl@golang.org>
Sat, 12 Mar 2016 00:13:02 +0000 (00:13 +0000)
commit88849736b22968d74a5fa9f0654cf29044869739
treea2b41a440abbb776b8fd8931cf620c310c7e8d22
parent9d7b2b7b10fb30716c852b4dfe7e2c7350e7d0d7
crypto/tls: better error for oversized handshake messages.

This change improves the error message when encountering a TLS handshake
message that is larger than our limit (64KB). Previously the error was
just “local error: internal error”.

Updates #13401.

Change-Id: I86127112045ae33e51079e3bc047dd7386ddc71a
Reviewed-on: https://go-review.googlesource.com/20547
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Adam Langley <agl@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/crypto/tls/conn.go