7a04f298d2
- update to latest telegram layer - remove some references to fields in tg.Entities that don't exist in the schema - originally added here: https://github.com/beeper/td/commit/820929062a2ba0104397bc01235ab58a9cff780e - referenced here - https://github.com/mautrix/telegramgo/commit/124f0967ed195b5a380c9bd02e170ada9710dde3 - https://github.com/mautrix/telegramgo/commit/4205047aab2e0639217148b5d125bfaab668bd8e
36 lines
1.0 KiB
Go
36 lines
1.0 KiB
Go
package faketls
|
|
|
|
// RecordType represents TLS record type byte.
|
|
type RecordType uint8
|
|
|
|
const (
|
|
// RecordTypeChangeCipherSpec is ChangeCipherSpec record type byte.
|
|
RecordTypeChangeCipherSpec RecordType = 0x14
|
|
// RecordTypeAlert is Alert record type byte.
|
|
RecordTypeAlert RecordType = 0x15
|
|
// RecordTypeHandshake is Handshake record type byte.
|
|
RecordTypeHandshake RecordType = 0x16
|
|
// RecordTypeApplication is Application record type byte.
|
|
RecordTypeApplication RecordType = 0x17
|
|
// RecordTypeHeartbeat is Heartbeat record type byte.
|
|
RecordTypeHeartbeat RecordType = 0x18
|
|
)
|
|
|
|
// HandshakeType represents TLS handshake record type byte.
|
|
type HandshakeType uint8
|
|
|
|
const (
|
|
// HandshakeTypeClient is client handshake message type.
|
|
HandshakeTypeClient HandshakeType = 0x01
|
|
// HandshakeTypeServer is server handshake message type.
|
|
HandshakeTypeServer HandshakeType = 0x02
|
|
)
|
|
|
|
// Possible versions.
|
|
var (
|
|
Version10Bytes = [2]byte{0x03, 0x01}
|
|
Version11Bytes = [2]byte{0x03, 0x02}
|
|
Version12Bytes = [2]byte{0x03, 0x03}
|
|
Version13Bytes = [2]byte{0x03, 0x04}
|
|
)
|