mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
crypto/tls: enable X25519 by default.
Since this changes the offered curves in the ClientHello, all the test data needs to be updated too. Change-Id: I227934711104349c0f0eab11d854e5a2adcbc363 Reviewed-on: https://go-review.googlesource.com/30825 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
8a11cb318f
commit
9e98e7e668
63 changed files with 2757 additions and 2875 deletions
|
|
@ -550,7 +550,7 @@ func (c *Config) maxVersion() uint16 {
|
|||
return c.MaxVersion
|
||||
}
|
||||
|
||||
var defaultCurvePreferences = []CurveID{CurveP256, CurveP384, CurveP521}
|
||||
var defaultCurvePreferences = []CurveID{X25519, CurveP256, CurveP384, CurveP521}
|
||||
|
||||
func (c *Config) curvePreferences() []CurveID {
|
||||
if c == nil || len(c.CurvePreferences) == 0 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue