mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-17 11:24:44 -07:00
20 lines
399 B
Go
20 lines
399 B
Go
// Copyright 2015 Apcera Inc. All rights reserved.
|
|
|
|
// +build go1.5
|
|
|
|
package server
|
|
|
|
import (
|
|
"crypto/tls"
|
|
)
|
|
|
|
func defaultCipherSuites() []uint16 {
|
|
return []uint16{
|
|
// The SHA384 versions are only in Go1.5
|
|
tls.TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,
|
|
tls.TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,
|
|
tls.TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,
|
|
tls.TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,
|
|
}
|
|
}
|