mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-12-01 01:36:09 +03:00
Raise initial padding number to 8
Protect initial handshake lengths. Common client initial sequence: - TLS: ClientHello - TLS: ChangeCipherSpec, Finished - H2: Magic, SETTINGS, WINDOW_UPDATE - H2: HEADERS: GET - H2: SETTINGS ACK Common server initial sequence: - TLS: ServerHello, ChangeCipherSpec, ... - TLS: Certificate, ... - H2: SETTINGS - H2: WINDOW_UPDATE - H2: SETTINGS ACK - H2: HEADERS: 200 OK
This commit is contained in:
parent
df9cade438
commit
453aca0079
@ -41,7 +41,7 @@ namespace net {
|
|||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
constexpr int kBufferSize = 64 * 1024;
|
constexpr int kBufferSize = 64 * 1024;
|
||||||
constexpr int kFirstPaddings = 4;
|
constexpr int kFirstPaddings = 8;
|
||||||
constexpr int kPaddingHeaderSize = 3;
|
constexpr int kPaddingHeaderSize = 3;
|
||||||
constexpr int kMaxPaddingSize = 255;
|
constexpr int kMaxPaddingSize = 255;
|
||||||
} // namespace
|
} // namespace
|
||||||
|
Loading…
Reference in New Issue
Block a user