1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-09-19 10:26:10 -04:00
v2fly/external/github.com/lucas-clemente/quic-go/internal/protocol/encryption_level.go

29 lines
664 B
Go
Raw Normal View History

2018-11-20 17:51:25 -05:00
package protocol
// EncryptionLevel is the encryption level
// Default value is Unencrypted
type EncryptionLevel int
const (
// EncryptionUnspecified is a not specified encryption level
EncryptionUnspecified EncryptionLevel = iota
2018-11-23 11:04:53 -05:00
// EncryptionInitial is the Initial encryption level
EncryptionInitial
// EncryptionHandshake is the Handshake encryption level
EncryptionHandshake
// Encryption1RTT is the 1-RTT encryption level
Encryption1RTT
2018-11-20 17:51:25 -05:00
)
func (e EncryptionLevel) String() string {
switch e {
2018-11-23 11:04:53 -05:00
case EncryptionInitial:
return "Initial"
case EncryptionHandshake:
return "Handshake"
case Encryption1RTT:
return "1-RTT"
2018-11-20 17:51:25 -05:00
}
return "unknown"
}