The reconcile package is used for DOM reconcilation in Isomorphic Go web applications.

go17_not18.go 1.3KB

123456789101112131415161718192021222324252627282930313233343536
  1. // Copyright 2016 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. // +build go1.7,!go1.8
  5. package http2
  6. import "crypto/tls"
  7. // temporary copy of Go 1.7's private tls.Config.clone:
  8. func cloneTLSConfig(c *tls.Config) *tls.Config {
  9. return &tls.Config{
  10. Rand: c.Rand,
  11. Time: c.Time,
  12. Certificates: c.Certificates,
  13. NameToCertificate: c.NameToCertificate,
  14. GetCertificate: c.GetCertificate,
  15. RootCAs: c.RootCAs,
  16. NextProtos: c.NextProtos,
  17. ServerName: c.ServerName,
  18. ClientAuth: c.ClientAuth,
  19. ClientCAs: c.ClientCAs,
  20. InsecureSkipVerify: c.InsecureSkipVerify,
  21. CipherSuites: c.CipherSuites,
  22. PreferServerCipherSuites: c.PreferServerCipherSuites,
  23. SessionTicketsDisabled: c.SessionTicketsDisabled,
  24. SessionTicketKey: c.SessionTicketKey,
  25. ClientSessionCache: c.ClientSessionCache,
  26. MinVersion: c.MinVersion,
  27. MaxVersion: c.MaxVersion,
  28. CurvePreferences: c.CurvePreferences,
  29. DynamicRecordSizingDisabled: c.DynamicRecordSizingDisabled,
  30. Renegotiation: c.Renegotiation,
  31. }
  32. }