]> Cypherpunks repositories - gostls13.git/commit
crypto/tls: document ConnectionState.NegotiatedProtocol more clearly
authorAnmol Sethi <anmol@aubble.com>
Sun, 29 Jan 2017 08:18:17 +0000 (03:18 -0500)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 1 Feb 2017 21:48:27 +0000 (21:48 +0000)
commitc67f0d949941279681b53b585eb967326811a93b
treebf11d8788bf680ea9eed393fa361bc22183b7018
parentb48c419c4109a1c0e1e7a60a7a28659f6a92e827
crypto/tls: document ConnectionState.NegotiatedProtocol more clearly

ConnectionState.NegotiatedProtocol's documentation implies that it will
always be from Config.NextProtos. This commit clarifies that there is no
guarantee.

This commit also adds a note to
ConnectionState.NegotiatedProtocolIsMutual, making it clear that it is
client side only.

Fixes #18841

Change-Id: Icd028af8042f31e45575f1080c5e9bd3012e03d7
Reviewed-on: https://go-review.googlesource.com/35917
Reviewed-by: Filippo Valsorda <hi@filippo.io>
Reviewed-by: Adam Langley <agl@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Adam Langley <agl@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/crypto/tls/common.go