You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
When I add a SNI with length of 65000 bytes, I only see a RecordLayer but I read TLS RFC(5246), I think that they say that the maximum size of RecordLayer is 2 ^14 (16384 bytes).
Is it a bug or is it available to use bigger size than 16384?
BR
The text was updated successfully, but these errors were encountered:
It is not a bug. RFC-5246 (TLS1.2) restricts the maximum fragment size to 2^14 bytes. scapy-ssl_tls layers have no intention to artificially limit you to this length even-though it is not RFC compliant. We allow you to create records up to the maximum possible size (USHRT_MAX=2^16-1). if you want to transport SNI entries larger than 2^14 bytes (record length) you'll have to fragment the resulting layer into multiple <= 2^14 bytes records. see #43
As Tin mentioned, this is not a bug. I added fragmentation support in PR #46. It's still up to you to fragment on the 2^14 boundary though (using tls_fragment_payload() or fragment()).
This is because it allows one to create fragments larger then the allowed limit.
Hello,
When I add a SNI with length of 65000 bytes, I only see a RecordLayer but I read TLS RFC(5246), I think that they say that the maximum size of RecordLayer is 2 ^14 (16384 bytes).
Is it a bug or is it available to use bigger size than 16384?
BR
The text was updated successfully, but these errors were encountered: