forked from quic-go/quic-go
update mint
This commit is contained in:
20
vendor/github.com/bifurcation/mint/state-machine.go
generated
vendored
20
vendor/github.com/bifurcation/mint/state-machine.go
generated
vendored
@@ -17,10 +17,6 @@ type SendQueuedHandshake struct{}
|
||||
|
||||
type SendEarlyData struct{}
|
||||
|
||||
type ReadEarlyData struct{}
|
||||
|
||||
type ReadPastEarlyData struct{}
|
||||
|
||||
type RekeyIn struct {
|
||||
epoch Epoch
|
||||
KeySet keySet
|
||||
@@ -31,6 +27,10 @@ type RekeyOut struct {
|
||||
KeySet keySet
|
||||
}
|
||||
|
||||
type ResetOut struct {
|
||||
seq uint64
|
||||
}
|
||||
|
||||
type StorePSK struct {
|
||||
PSK PreSharedKey
|
||||
}
|
||||
@@ -50,7 +50,6 @@ type AppExtensionHandler interface {
|
||||
type ConnectionOptions struct {
|
||||
ServerName string
|
||||
NextProtos []string
|
||||
EarlyData []byte
|
||||
}
|
||||
|
||||
// ConnectionParameters objects represent the parameters negotiated for a
|
||||
@@ -60,6 +59,7 @@ type ConnectionParameters struct {
|
||||
UsingDH bool
|
||||
ClientSendingEarlyData bool
|
||||
UsingEarlyData bool
|
||||
RejectedEarlyData bool
|
||||
UsingClientAuth bool
|
||||
|
||||
CipherSuite CipherSuite
|
||||
@@ -69,7 +69,13 @@ type ConnectionParameters struct {
|
||||
|
||||
// Working state for the handshake.
|
||||
type HandshakeContext struct {
|
||||
hIn, hOut *HandshakeLayer
|
||||
timeoutMS uint32
|
||||
timers *timerSet
|
||||
recvdRecords []uint64
|
||||
sentFragments []*SentHandshakeFragment
|
||||
hIn, hOut *HandshakeLayer
|
||||
waitingNextFlight bool
|
||||
earlyData []byte
|
||||
}
|
||||
|
||||
func (hc *HandshakeContext) SetVersion(version uint16) {
|
||||
@@ -84,7 +90,7 @@ func (hc *HandshakeContext) SetVersion(version uint16) {
|
||||
// stateConnected is symmetric between client and server
|
||||
type stateConnected struct {
|
||||
Params ConnectionParameters
|
||||
hsCtx HandshakeContext
|
||||
hsCtx *HandshakeContext
|
||||
isClient bool
|
||||
cryptoParams CipherSuiteParams
|
||||
resumptionSecret []byte
|
||||
|
||||
Reference in New Issue
Block a user