Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * SSL3 Protocol | 2 * SSL3 Protocol |
| 3 * | 3 * |
| 4 * ***** BEGIN LICENSE BLOCK ***** | 4 * ***** BEGIN LICENSE BLOCK ***** |
| 5 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 | 5 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 |
| 6 * | 6 * |
| 7 * The contents of this file are subject to the Mozilla Public License Version | 7 * The contents of this file are subject to the Mozilla Public License Version |
| 8 * 1.1 (the "License"); you may not use this file except in compliance with | 8 * 1.1 (the "License"); you may not use this file except in compliance with |
| 9 * the License. You may obtain a copy of the License at | 9 * the License. You may obtain a copy of the License at |
| 10 * http://www.mozilla.org/MPL/ | 10 * http://www.mozilla.org/MPL/ |
| (...skipping 2212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2223 } | 2223 } |
| 2224 | 2224 |
| 2225 while (nIn > 0) { | 2225 while (nIn > 0) { |
| 2226 PRUint32 contentLen = PR_MIN(nIn, MAX_FRAGMENT_LENGTH); | 2226 PRUint32 contentLen = PR_MIN(nIn, MAX_FRAGMENT_LENGTH); |
| 2227 unsigned int spaceNeeded; | 2227 unsigned int spaceNeeded; |
| 2228 unsigned int numRecords; | 2228 unsigned int numRecords; |
| 2229 | 2229 |
| 2230 ssl_GetSpecReadLock(ss); /********************************/ | 2230 ssl_GetSpecReadLock(ss); /********************************/ |
| 2231 | 2231 |
| 2232 if (nIn > 1 && | 2232 if (nIn > 1 && |
| 2233 ss->opt.enableFalseStart == PR_TRUE && | |
|
wtc
2011/10/05 15:47:21
Nit: remove " == PR_TRUE".
agl
2011/10/05 16:27:39
Done and have updated the patch.
| |
| 2233 ss->ssl3.cwSpec->version <= SSL_LIBRARY_VERSION_3_1_TLS && | 2234 ss->ssl3.cwSpec->version <= SSL_LIBRARY_VERSION_3_1_TLS && |
| 2234 type == content_application_data && | 2235 type == content_application_data && |
| 2235 ss->ssl3.cwSpec->cipher_def->type == type_block /* CBC mode */) { | 2236 ss->ssl3.cwSpec->cipher_def->type == type_block /* CBC mode */) { |
| 2236 /* We will split the first byte of the record into its own record, | 2237 /* We will split the first byte of the record into its own record, |
| 2237 * as explained in the documentation for SSL_CBC_RANDOM_IV in ssl.h | 2238 * as explained in the documentation for SSL_CBC_RANDOM_IV in ssl.h |
| 2238 */ | 2239 */ |
| 2239 numRecords = 2; | 2240 numRecords = 2; |
| 2240 } else { | 2241 } else { |
| 2241 numRecords = 1; | 2242 numRecords = 1; |
| 2242 } | 2243 } |
| (...skipping 7749 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 9992 | 9993 |
| 9993 ss->ssl3.initialized = PR_FALSE; | 9994 ss->ssl3.initialized = PR_FALSE; |
| 9994 | 9995 |
| 9995 if (ss->ssl3.nextProto.data) { | 9996 if (ss->ssl3.nextProto.data) { |
| 9996 PORT_Free(ss->ssl3.nextProto.data); | 9997 PORT_Free(ss->ssl3.nextProto.data); |
| 9997 ss->ssl3.nextProto.data = NULL; | 9998 ss->ssl3.nextProto.data = NULL; |
| 9998 } | 9999 } |
| 9999 } | 10000 } |
| 10000 | 10001 |
| 10001 /* End of ssl3con.c */ | 10002 /* End of ssl3con.c */ |
| OLD | NEW |