瀏覽代碼

lib/tlsutil: Remove hardcoded curve preferences (fixes #5940) (#5942)

They are arguable outdated and we are better off trusting the standard
library than trying to keep up with it ourselves.
Jakob Borg 6 年之前
父節點
當前提交
720a6bf62e
共有 1 個文件被更改,包括 0 次插入4 次删除
  1. 0 4
      lib/tlsutil/tlsutil.go

+ 0 - 4
lib/tlsutil/tlsutil.go

@@ -86,10 +86,6 @@ func SecureDefault() *tls.Config {
 	return &tls.Config{
 		// TLS 1.2 is the minimum we accept
 		MinVersion: tls.VersionTLS12,
-		// We want the longer curves at the front, because that's more
-		// secure (so the web tells me, don't ask me to explain the
-		// details).
-		CurvePreferences: []tls.CurveID{tls.CurveP521, tls.CurveP384, tls.CurveP256},
 		// The cipher suite lists built above. These are ignored in TLS 1.3.
 		CipherSuites: cs,
 		// We've put some thought into this choice and would like it to