package faketls
Import Path
github.com/gotd/td/internal/mtproxy/faketls (on go.dev)
Dependency Relation
imports 10 packages, and imported by one package
Involved Source Files
client_hello.go
Package faketls contains faketls implementation.
faketls.go
record.go
server_hello.go
tls.go
Package-Level Type Names (total 4, in which 3 are exported)
FakeTLS implements FakeTLS obfuscation protocol.
clock clock.Clock
conn io.ReadWriter
firstPacket bool
rand io.Reader
readBuf bytes.Buffer
readBufMux sync.Mutex
version [2]byte
Handshake performs FakeTLS handshake.
Read implements io.Reader.
Write implements io.Writer.
*FakeTLS : github.com/gotd/td/internal/mtproxy/obfuscator.Obfuscator
*FakeTLS : internal/bisect.Writer
*FakeTLS : io.Reader
*FakeTLS : io.ReadWriter
*FakeTLS : io.Writer
*FakeTLS : crypto/tls.transcriptHash
func NewFakeTLS(r io.Reader, conn io.ReadWriter) *FakeTLS
HandshakeType represents TLS handshake record type byte.
const HandshakeTypeClient
const HandshakeTypeServer
RecordType represents TLS record type byte.
const RecordTypeAlert
const RecordTypeApplication
const RecordTypeChangeCipherSpec
const RecordTypeHandshake
const RecordTypeHeartbeat
Package-Level Functions (total 6, in which 1 is exported)
NewFakeTLS creates new FakeTLS.
Package-Level Variables (total 4, all are exported)
Possible versions.
Possible versions.
Possible versions.
Possible versions.
Package-Level Constants (total 9, in which 7 are exported)
HandshakeTypeClient is client handshake message type.
HandshakeTypeServer is server handshake message type.
RecordTypeAlert is Alert record type byte.
RecordTypeApplication is Application record type byte.
RecordTypeChangeCipherSpec is ChangeCipherSpec record type byte.
RecordTypeHandshake is Handshake record type byte.
RecordTypeHeartbeat is Heartbeat record type byte.
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. |