mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
bump docker/go-connections to 98e7d807e5d804e4e42a98d74d1dd695321224ef
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
421664aba1
commit
a6d35a822e
2 changed files with 18 additions and 6 deletions
|
@ -16,7 +16,7 @@ github.com/vdemeester/shakers 24d7f1d6a71aa5d9cbe7390e4afb66b7eef9e1b3
|
||||||
golang.org/x/net 7dcfb8076726a3fdd9353b6b8a1f1b6be6811bd6
|
golang.org/x/net 7dcfb8076726a3fdd9353b6b8a1f1b6be6811bd6
|
||||||
golang.org/x/sys 95c6576299259db960f6c5b9b69ea52422860fce
|
golang.org/x/sys 95c6576299259db960f6c5b9b69ea52422860fce
|
||||||
github.com/docker/go-units 9e638d38cf6977a37a8ea0078f3ee75a7cdb2dd1
|
github.com/docker/go-units 9e638d38cf6977a37a8ea0078f3ee75a7cdb2dd1
|
||||||
github.com/docker/go-connections 3ede32e2033de7505e6500d6c868c2b9ed9f169d
|
github.com/docker/go-connections 98e7d807e5d804e4e42a98d74d1dd695321224ef
|
||||||
golang.org/x/text f72d8390a633d5dfb0cc84043294db9f6c935756
|
golang.org/x/text f72d8390a633d5dfb0cc84043294db9f6c935756
|
||||||
github.com/stretchr/testify 4d4bfba8f1d1027c4fdbe371823030df51419987
|
github.com/stretchr/testify 4d4bfba8f1d1027c4fdbe371823030df51419987
|
||||||
github.com/pmezard/go-difflib v1.0.0
|
github.com/pmezard/go-difflib v1.0.0
|
||||||
|
|
22
vendor/github.com/docker/go-connections/tlsconfig/config.go
generated
vendored
22
vendor/github.com/docker/go-connections/tlsconfig/config.go
generated
vendored
|
@ -65,22 +65,34 @@ var allTLSVersions = map[uint16]struct{}{
|
||||||
}
|
}
|
||||||
|
|
||||||
// ServerDefault returns a secure-enough TLS configuration for the server TLS configuration.
|
// ServerDefault returns a secure-enough TLS configuration for the server TLS configuration.
|
||||||
func ServerDefault() *tls.Config {
|
func ServerDefault(ops ...func(*tls.Config)) *tls.Config {
|
||||||
return &tls.Config{
|
tlsconfig := &tls.Config{
|
||||||
// Avoid fallback to SSL protocols < TLS1.0
|
// Avoid fallback by default to SSL protocols < TLS1.0
|
||||||
MinVersion: tls.VersionTLS10,
|
MinVersion: tls.VersionTLS10,
|
||||||
PreferServerCipherSuites: true,
|
PreferServerCipherSuites: true,
|
||||||
CipherSuites: DefaultServerAcceptedCiphers,
|
CipherSuites: DefaultServerAcceptedCiphers,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for _, op := range ops {
|
||||||
|
op(tlsconfig)
|
||||||
|
}
|
||||||
|
|
||||||
|
return tlsconfig
|
||||||
}
|
}
|
||||||
|
|
||||||
// ClientDefault returns a secure-enough TLS configuration for the client TLS configuration.
|
// ClientDefault returns a secure-enough TLS configuration for the client TLS configuration.
|
||||||
func ClientDefault() *tls.Config {
|
func ClientDefault(ops ...func(*tls.Config)) *tls.Config {
|
||||||
return &tls.Config{
|
tlsconfig := &tls.Config{
|
||||||
// Prefer TLS1.2 as the client minimum
|
// Prefer TLS1.2 as the client minimum
|
||||||
MinVersion: tls.VersionTLS12,
|
MinVersion: tls.VersionTLS12,
|
||||||
CipherSuites: clientCipherSuites,
|
CipherSuites: clientCipherSuites,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for _, op := range ops {
|
||||||
|
op(tlsconfig)
|
||||||
|
}
|
||||||
|
|
||||||
|
return tlsconfig
|
||||||
}
|
}
|
||||||
|
|
||||||
// certPool returns an X.509 certificate pool from `caFile`, the certificate file.
|
// certPool returns an X.509 certificate pool from `caFile`, the certificate file.
|
||||||
|
|
Loading…
Add table
Reference in a new issue