@@ -199,7 +199,7 @@ type ConnectionState struct {
199
199
Version uint16 // TLS version used by the connection (e.g. VersionTLS12)
200
200
HandshakeComplete bool // TLS handshake is complete
201
201
DidResume bool // connection resumes a previous TLS connection
202
- CipherSuite uint16 // cipher suite in use (TLS_RSA_WITH_RC4_128_SHA , ...)
202
+ CipherSuite uint16 // cipher suite in use (TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 , ...)
203
203
NegotiatedProtocol string // negotiated next protocol (not guaranteed to be from Config.NextProtos)
204
204
NegotiatedProtocolIsMutual bool // negotiated protocol was advertised by server (client side only)
205
205
ServerName string // server name requested by client, if any (server side only)
@@ -315,7 +315,7 @@ const (
315
315
// guide certificate selection in the GetCertificate callback.
316
316
type ClientHelloInfo struct {
317
317
// CipherSuites lists the CipherSuites supported by the client (e.g.
318
- // TLS_RSA_WITH_RC4_128_SHA ).
318
+ // TLS_AES_128_GCM_SHA256, TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 ).
319
319
CipherSuites []uint16
320
320
321
321
// ServerName indicates the name of the server requested by the client
@@ -521,8 +521,11 @@ type Config struct {
521
521
// This should be used only for testing.
522
522
InsecureSkipVerify bool
523
523
524
- // CipherSuites is a list of supported cipher suites. If CipherSuites
525
- // is nil, TLS uses a list of suites supported by the implementation.
524
+ // CipherSuites is a list of supported cipher suites for TLS versions up to
525
+ // TLS 1.2. If CipherSuites is nil, a default list of secure cipher suites
526
+ // is used, with a preference order based on hardware performance. The
527
+ // default cipher suites might change over Go versions. Note that TLS 1.3
528
+ // ciphersuites are not configurable.
526
529
CipherSuites []uint16
527
530
528
531
// PreferServerCipherSuites controls whether the server selects the
0 commit comments