validate length of crypto message

refs #123
This commit is contained in:
Lucas Clemente
2016-05-27 23:25:51 +02:00
parent 7c23ba7b07
commit a4773eb5ff
3 changed files with 37 additions and 2 deletions

View File

@@ -58,3 +58,10 @@ const STKExpiryTimeSec = 24 * 60 * 60
// TODO: find a reasonable value here
// TODO: decrease this value after dropping support for QUIC 33 and earlier
const MaxTrackedSentPackets uint32 = 2000
// CryptoMaxParams is the upper limit for the number of parameters in a crypto message.
// Value taken from Chrome.
const CryptoMaxParams = 128
// CryptoParameterMaxLength is the upper limit for the length of a parameter in a crypto message.
const CryptoParameterMaxLength = ClientHelloMinimumSize