123456789101112131415161718192021222324 |
- // Copyright 2009 The Go Authors. All rights reserved.
- // Use of this source code is governed by a BSD-style
- // license that can be found in the LICENSE file.
- //go:build linux && go1.25 && badlinkname
- package ktls
- const (
- maxPlaintext = 16384 // maximum plaintext payload length
- maxCiphertext = 16384 + 2048 // maximum ciphertext payload length
- maxCiphertextTLS13 = 16384 + 256 // maximum ciphertext length in TLS 1.3
- recordHeaderLen = 5 // record header length
- maxHandshake = 65536 // maximum handshake we support (protocol max is 16 MB)
- maxHandshakeCertificateMsg = 262144 // maximum certificate message size (256 KiB)
- maxUselessRecords = 16 // maximum number of consecutive non-advancing records
- )
- const (
- recordTypeChangeCipherSpec = 20
- recordTypeAlert = 21
- recordTypeHandshake = 22
- recordTypeApplicationData = 23
- )
|