make the TLS cipher suites configurable

This commit is contained in:
Marten Seemann
2020-02-01 15:58:40 +07:00
parent 54b38cac0f
commit f91dfda8c3
6 changed files with 50 additions and 3 deletions

View File

@@ -59,6 +59,7 @@ var (
// DialAddr establishes a new QUIC connection to a server.
// It uses a new UDP connection and closes this connection when the QUIC session is closed.
// The hostname for SNI is taken from the given address.
// The tls.Config.CipherSuites allows setting of TLS 1.3 cipher suites.
func DialAddr(
addr string,
tlsConf *tls.Config,
@@ -70,6 +71,7 @@ func DialAddr(
// DialAddrEarly establishes a new 0-RTT QUIC connection to a server.
// It uses a new UDP connection and closes this connection when the QUIC session is closed.
// The hostname for SNI is taken from the given address.
// The tls.Config.CipherSuites allows setting of TLS 1.3 cipher suites.
func DialAddrEarly(
addr string,
tlsConf *tls.Config,