Source File
tls.go
Belonging Package
github.com/gotd/td/internal/mtproxy/faketls
package faketls// RecordType represents TLS record type byte.type RecordType uint8const (// 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 uint8const (// 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})
![]() |
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |