Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(373)

Unified Diff: net/third_party/nss/patches/paddingextensionall.patch

Issue 180973006: Merge 252421 "net: don't always add TLS padding." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1847/src/
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/third_party/nss/patches/applypatches.sh ('k') | net/third_party/nss/ssl/ssl3ext.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/third_party/nss/patches/paddingextensionall.patch
===================================================================
--- net/third_party/nss/patches/paddingextensionall.patch (revision 253837)
+++ net/third_party/nss/patches/paddingextensionall.patch (working copy)
@@ -1,25 +0,0 @@
-diff -pu a/nss/lib/ssl/ssl3ext.c b/nss/lib/ssl/ssl3ext.c
---- a/nss/lib/ssl/ssl3ext.c 2014-01-17 17:59:03.242109996 -0800
-+++ b/nss/lib/ssl/ssl3ext.c 2014-01-17 18:17:39.630620563 -0800
-@@ -2332,7 +2332,11 @@ ssl3_CalculatePaddingExtensionLength(uns
- clientHelloLength;
- unsigned int extensionLength;
-
-- if (recordLength < 256 || recordLength >= 512) {
-+ /* This condition should be:
-+ * if (recordLength < 256 || recordLength >= 512) {
-+ * It has been changed, temporarily, to test whether 512 byte ClientHellos
-+ * are a compatibility problem. */
-+ if (recordLength >= 512) {
- return 0;
- }
-
-@@ -2353,7 +2357,7 @@ ssl3_AppendPaddingExtension(sslSocket *s
- PRUint32 maxBytes)
- {
- unsigned int paddingLen = extensionLen - 4;
-- static unsigned char padding[256];
-+ static unsigned char padding[512];
-
- if (extensionLen == 0) {
- return 0;
« no previous file with comments | « net/third_party/nss/patches/applypatches.sh ('k') | net/third_party/nss/ssl/ssl3ext.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698