File tree Expand file tree Collapse file tree 3 files changed +32
-6
lines changed Expand file tree Collapse file tree 3 files changed +32
-6
lines changed Original file line number Diff line number Diff line change @@ -41,12 +41,6 @@ var acceptedCBCCiphers = []uint16{
41
41
tls .TLS_RSA_WITH_AES_128_CBC_SHA ,
42
42
}
43
43
44
- // Client TLS cipher suites (dropping CBC ciphers for client preferred suite set)
45
- var clientCipherSuites = []uint16 {
46
- tls .TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 ,
47
- tls .TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 ,
48
- }
49
-
50
44
// DefaultServerAcceptedCiphers should be uses by code which already has a crypto/tls
51
45
// options struct but wants to use a commonly accepted set of TLS cipher suites, with
52
46
// known weak algorithms removed.
Original file line number Diff line number Diff line change
1
+ // +build go1.5
2
+
3
+ // Package tlsconfig provides primitives to retrieve secure-enough TLS configurations for both clients and servers.
4
+ //
5
+ package tlsconfig
6
+
7
+ import (
8
+ "crypto/tls"
9
+ )
10
+
11
+ // Client TLS cipher suites (dropping CBC ciphers for client preferred suite set)
12
+ var clientCipherSuites = []uint16 {
13
+ tls .TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 ,
14
+ tls .TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 ,
15
+ tls .TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 ,
16
+ tls .TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 ,
17
+ }
Original file line number Diff line number Diff line change
1
+ // +build !go1.5
2
+
3
+ // Package tlsconfig provides primitives to retrieve secure-enough TLS configurations for both clients and servers.
4
+ //
5
+ package tlsconfig
6
+
7
+ import (
8
+ "crypto/tls"
9
+ )
10
+
11
+ // Client TLS cipher suites (dropping CBC ciphers for client preferred suite set)
12
+ var clientCipherSuites = []uint16 {
13
+ tls .TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 ,
14
+ tls .TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 ,
15
+ }
You can’t perform that action at this time.
0 commit comments