Documentation
¶
Index ¶
Constants ¶
View Source
const ( SizeRecordType = 1 SizeVersion = 2 SizeSize = 2 SizeHeader = SizeRecordType + SizeVersion + SizeSize MaxRecordSize = 16384 MaxRecordPayloadSize = MaxRecordSize - SizeHeader DefaultBufferSize = 4096 TypeChangeCipherSpec = 0x14 TypeHandshake = 0x16 TypeApplicationData = 0x17 )
Variables ¶
View Source
var TLSVersion = [SizeVersion]byte{3, 3}
TLS 1.2 is used for both TLS 1.2 and 1.3
Functions ¶
Types ¶
type Conn ¶
type Conn struct {
essentials.Conn
// contains filtered or unexported fields
}
Conn presents an established TLS 1.3 connection, after handshake
Click to show internal directories.
Click to hide internal directories.