diff --git a/interop/client/main.go b/interop/client/main.go index 39c7edb0..ee9eb421 100644 --- a/interop/client/main.go +++ b/interop/client/main.go @@ -18,6 +18,7 @@ import ( "github.com/quic-go/quic-go/http3" "github.com/quic-go/quic-go/internal/handshake" "github.com/quic-go/quic-go/internal/protocol" + "github.com/quic-go/quic-go/internal/qtls" "github.com/quic-go/quic-go/interop/http09" "github.com/quic-go/quic-go/interop/utils" "github.com/quic-go/quic-go/qlog" @@ -90,7 +91,8 @@ func runTestcase(testcase string) error { case "keyupdate": handshake.KeyUpdateInterval = 100 case "chacha20": - tlsConf.CipherSuites = []uint16{tls.TLS_CHACHA20_POLY1305_SHA256} + reset := qtls.SetCipherSuite(tls.TLS_CHACHA20_POLY1305_SHA256) + defer reset() case "multiconnect": return runMultiConnectTest(r, urls) case "versionnegotiation": diff --git a/interop/server/main.go b/interop/server/main.go index a6a98cfc..867044b4 100644 --- a/interop/server/main.go +++ b/interop/server/main.go @@ -10,6 +10,7 @@ import ( "github.com/quic-go/quic-go" "github.com/quic-go/quic-go/http3" + "github.com/quic-go/quic-go/internal/qtls" "github.com/quic-go/quic-go/interop/http09" "github.com/quic-go/quic-go/interop/utils" "github.com/quic-go/quic-go/qlog" @@ -64,7 +65,8 @@ func main() { case "versionnegotiation", "handshake", "retry", "transfer", "resumption", "multiconnect": err = runHTTP09Server(quicConf) case "chacha20": - tlsConf.CipherSuites = []uint16{tls.TLS_CHACHA20_POLY1305_SHA256} + reset := qtls.SetCipherSuite(tls.TLS_CHACHA20_POLY1305_SHA256) + defer reset() err = runHTTP09Server(quicConf) case "http3": err = runHTTP3Server(quicConf)