check that transport params didn't change when accepting

This commit is contained in:
Marten Seemann 2019-08-03 13:48:23 +07:00
parent ed0f426943
commit a9f4195fd0
7 changed files with 71 additions and 19 deletions

View file

@ -95,6 +95,7 @@ var _ = Describe("Crypto Setup TLS", func() {
&TransportParameters{},
NewMockHandshakeRunner(mockCtrl),
tlsConf,
false,
&congestion.RTTStats{},
utils.DefaultLogger.WithPrefix("server"),
)
@ -126,6 +127,7 @@ var _ = Describe("Crypto Setup TLS", func() {
&TransportParameters{},
runner,
testdata.GetTLSConfig(),
false,
&congestion.RTTStats{},
utils.DefaultLogger.WithPrefix("server"),
)
@ -163,6 +165,7 @@ var _ = Describe("Crypto Setup TLS", func() {
&TransportParameters{},
runner,
testdata.GetTLSConfig(),
false,
&congestion.RTTStats{},
utils.DefaultLogger.WithPrefix("server"),
)
@ -203,6 +206,7 @@ var _ = Describe("Crypto Setup TLS", func() {
&TransportParameters{},
runner,
serverConf,
false,
&congestion.RTTStats{},
utils.DefaultLogger.WithPrefix("server"),
)
@ -236,6 +240,7 @@ var _ = Describe("Crypto Setup TLS", func() {
&TransportParameters{},
NewMockHandshakeRunner(mockCtrl),
serverConf,
false,
&congestion.RTTStats{},
utils.DefaultLogger.WithPrefix("server"),
)
@ -324,6 +329,7 @@ var _ = Describe("Crypto Setup TLS", func() {
&TransportParameters{},
cRunner,
clientConf,
false,
&congestion.RTTStats{},
utils.DefaultLogger.WithPrefix("client"),
)
@ -345,6 +351,7 @@ var _ = Describe("Crypto Setup TLS", func() {
&TransportParameters{StatelessResetToken: &token},
sRunner,
serverConf,
false,
&congestion.RTTStats{},
utils.DefaultLogger.WithPrefix("server"),
)
@ -397,6 +404,7 @@ var _ = Describe("Crypto Setup TLS", func() {
&TransportParameters{},
runner,
&tls.Config{InsecureSkipVerify: true},
false,
&congestion.RTTStats{},
utils.DefaultLogger.WithPrefix("client"),
)
@ -437,6 +445,7 @@ var _ = Describe("Crypto Setup TLS", func() {
cTransportParameters,
cRunner,
clientConf,
false,
&congestion.RTTStats{},
utils.DefaultLogger.WithPrefix("client"),
)
@ -459,6 +468,7 @@ var _ = Describe("Crypto Setup TLS", func() {
sTransportParameters,
sRunner,
serverConf,
false,
&congestion.RTTStats{},
utils.DefaultLogger.WithPrefix("server"),
)
@ -495,6 +505,7 @@ var _ = Describe("Crypto Setup TLS", func() {
&TransportParameters{},
cRunner,
clientConf,
false,
&congestion.RTTStats{},
utils.DefaultLogger.WithPrefix("client"),
)
@ -512,6 +523,7 @@ var _ = Describe("Crypto Setup TLS", func() {
&TransportParameters{},
sRunner,
serverConf,
false,
&congestion.RTTStats{},
utils.DefaultLogger.WithPrefix("server"),
)
@ -550,6 +562,7 @@ var _ = Describe("Crypto Setup TLS", func() {
&TransportParameters{},
cRunner,
clientConf,
false,
&congestion.RTTStats{},
utils.DefaultLogger.WithPrefix("client"),
)
@ -567,6 +580,7 @@ var _ = Describe("Crypto Setup TLS", func() {
&TransportParameters{},
sRunner,
serverConf,
false,
&congestion.RTTStats{},
utils.DefaultLogger.WithPrefix("server"),
)