mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
crypto/tls: report TLS version in ConnectionState.
Fixes #7231. LGTM=bradfitz R=golang-codereviews, bradfitz CC=golang-codereviews https://golang.org/cl/68250043
This commit is contained in:
parent
db99a8faa8
commit
c7612f3426
3 changed files with 19 additions and 0 deletions
|
|
@ -155,6 +155,7 @@ var supportedClientCertSignatureAlgorithms = []signatureAndHash{
|
|||
|
||||
// ConnectionState records basic TLS details about the connection.
|
||||
type ConnectionState struct {
|
||||
Version uint16 // TLS version used by the connection (e.g. VersionTLS12)
|
||||
HandshakeComplete bool // TLS handshake is complete
|
||||
DidResume bool // connection resumes a previous TLS connection
|
||||
CipherSuite uint16 // cipher suite in use (TLS_RSA_WITH_RC4_128_SHA, ...)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue