Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Ind.ie Projects
Pulse
Commits
24f9a2a2
Commit
24f9a2a2
authored
Jan 30, 2015
by
George MacRorie
Browse files
Limited cipher suite set in tls.Config to one which supports both Golang and iOS
parent
d2cd1f46
Changes
1
Hide whitespace changes
Inline
Side-by-side
cmd/pulse/main.go
View file @
24f9a2a2
...
...
@@ -357,7 +357,8 @@ func pulseMain() {
}
// The TLS configuration is used for both the listening socket and outgoing
// connections.
// connections. Includes a set of cipher suites supported by both Golang
// and iOS.
tlsCfg
:=
&
tls
.
Config
{
Certificates
:
[]
tls
.
Certificate
{
cert
},
...
...
@@ -367,6 +368,14 @@ func pulseMain() {
SessionTicketsDisabled
:
true
,
InsecureSkipVerify
:
true
,
MinVersion
:
tls
.
VersionTLS12
,
CipherSuites
:
[]
uint16
{
tls
.
TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA
,
tls
.
TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
,
tls
.
TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA
,
tls
.
TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA
,
tls
.
TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
,
tls
.
TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA
,
},
}
// If the read or write rate should be limited, set up a rate limiter for it.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment