crypto/tls: document ConnectionState fields
Fixes #6456. R=golang-dev, r CC=golang-dev https://golang.org/cl/14289043
This commit is contained in:
parent
3ee1782da4
commit
a13de249ee
22
common.go
22
common.go
@ -136,20 +136,14 @@ var supportedSignatureAlgorithms = []signatureAndHash{
|
|||||||
|
|
||||||
// ConnectionState records basic TLS details about the connection.
|
// ConnectionState records basic TLS details about the connection.
|
||||||
type ConnectionState struct {
|
type ConnectionState struct {
|
||||||
HandshakeComplete bool
|
HandshakeComplete bool // TLS handshake is complete
|
||||||
DidResume bool
|
DidResume bool // connection resumes a previous TLS connection
|
||||||
CipherSuite uint16
|
CipherSuite uint16 // cipher suite in use (TLS_RSA_WITH_RC4_128_SHA, ...)
|
||||||
NegotiatedProtocol string
|
NegotiatedProtocol string // negotiated next protocol (from Config.NextProtos)
|
||||||
NegotiatedProtocolIsMutual bool
|
NegotiatedProtocolIsMutual bool // negotiated protocol was advertised by server
|
||||||
|
ServerName string // server name requested by client, if any (server side only)
|
||||||
// ServerName contains the server name indicated by the client, if any.
|
PeerCertificates []*x509.Certificate // certificate chain presented by remote peer
|
||||||
// (Only valid for server connections.)
|
VerifiedChains [][]*x509.Certificate // verified chains built from PeerCertificates
|
||||||
ServerName string
|
|
||||||
|
|
||||||
// the certificate chain that was presented by the other side
|
|
||||||
PeerCertificates []*x509.Certificate
|
|
||||||
// the verified certificate chains built from PeerCertificates.
|
|
||||||
VerifiedChains [][]*x509.Certificate
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// ClientAuthType declares the policy the server will follow for
|
// ClientAuthType declares the policy the server will follow for
|
||||||
|
Loading…
Reference in New Issue
Block a user