mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-04-02 20:42:49 +00:00
bug 779413 r=bsmith
This commit is contained in:
parent
f320e3d05f
commit
56e1113b92
@ -552,7 +552,9 @@ SpdySession2::zlibInit()
|
|||||||
mUpstreamZlib.zfree = SpdyStream2::zlib_destructor;
|
mUpstreamZlib.zfree = SpdyStream2::zlib_destructor;
|
||||||
mUpstreamZlib.opaque = Z_NULL;
|
mUpstreamZlib.opaque = Z_NULL;
|
||||||
|
|
||||||
deflateInit(&mUpstreamZlib, Z_DEFAULT_COMPRESSION);
|
// mixing carte blanche compression with tls subjects us to traffic
|
||||||
|
// analysis attacks
|
||||||
|
deflateInit(&mUpstreamZlib, Z_NO_COMPRESSION);
|
||||||
deflateSetDictionary(&mUpstreamZlib,
|
deflateSetDictionary(&mUpstreamZlib,
|
||||||
reinterpret_cast<const unsigned char *>
|
reinterpret_cast<const unsigned char *>
|
||||||
(SpdyStream2::kDictionary),
|
(SpdyStream2::kDictionary),
|
||||||
|
@ -553,7 +553,9 @@ SpdySession3::zlibInit()
|
|||||||
mUpstreamZlib.zfree = SpdyStream3::zlib_destructor;
|
mUpstreamZlib.zfree = SpdyStream3::zlib_destructor;
|
||||||
mUpstreamZlib.opaque = Z_NULL;
|
mUpstreamZlib.opaque = Z_NULL;
|
||||||
|
|
||||||
deflateInit(&mUpstreamZlib, Z_DEFAULT_COMPRESSION);
|
// mixing carte blanche compression with tls subjects us to traffic
|
||||||
|
// analysis attacks
|
||||||
|
deflateInit(&mUpstreamZlib, Z_NO_COMPRESSION);
|
||||||
deflateSetDictionary(&mUpstreamZlib,
|
deflateSetDictionary(&mUpstreamZlib,
|
||||||
SpdyStream3::kDictionary,
|
SpdyStream3::kDictionary,
|
||||||
sizeof(SpdyStream3::kDictionary));
|
sizeof(SpdyStream3::kDictionary));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user