pub(crate) const CERTIFICATE_MAX_SIZE_LIMIT: usize = 0x1_0000;
Expand description
TLS has a 16MB size limit on any handshake message, plus a 16MB limit on any given certificate.
We contract that to 64KB to limit the amount of memory allocation that is directly controllable by the peer.