set the Long Header packet type based on the state of the handshake

This commit is contained in:
Marten Seemann
2017-10-27 08:39:06 +07:00
parent a65929f6cf
commit 3f62ea8673
14 changed files with 205 additions and 22 deletions

View File

@@ -69,3 +69,15 @@ func (_m *MockmintTLS) Handshake() mint.Alert {
func (_mr *MockmintTLSMockRecorder) Handshake() *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "Handshake", reflect.TypeOf((*MockmintTLS)(nil).Handshake))
}
// State mocks base method
func (_m *MockmintTLS) State() mint.ConnectionState {
ret := _m.ctrl.Call(_m, "State")
ret0, _ := ret[0].(mint.ConnectionState)
return ret0
}
// State indicates an expected call of State
func (_mr *MockmintTLSMockRecorder) State() *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "State", reflect.TypeOf((*MockmintTLS)(nil).State))
}