summaryrefslogtreecommitdiffstats
path: root/net
Commit message (Collapse)AuthorAgeFilesLines
* Fixes a few nits following http://codereview.chromium.org/8050021/bulach@chromium.org2011-10-061-2/+2
| | | | | | | | | | BUG= TEST= Review URL: http://codereview.chromium.org/8135004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104274 0039d316-1c4b-4281-b951-d872f2087c98
* Fix regression where Chrome is unable to NPN negotiate SPDY to an HTTPS proxy.rch@chromium.org2011-10-061-1/+4
| | | | | | | | | BUG=99200 TEST=Follow instructions in bug 99200 Review URL: http://codereview.chromium.org/8142039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104240 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a regression introduced by http://codereview.chromium.org/8050021.wtc@chromium.org2011-10-051-3/+3
| | | | | | | | | | | | Only test USE_OPENSSL. Do not test USE_NSS. R=thomasvl@chromium.org BUG=none TEST=TransportSecurityStateTest.* Review URL: http://codereview.chromium.org/8151002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104178 0039d316-1c4b-4281-b951-d872f2087c98
* net: another batch of Brocade users for the blacklist.agl@chromium.org2011-10-051-0/+7
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104156 0039d316-1c4b-4281-b951-d872f2087c98
* Experimental workaround for CHECK in NetworkChangeNotifierWin.mmenke@chromium.org2011-10-056-17/+429
| | | | | | | | | | | Also adds a related UMA histogram. BUG=69198 TEST=NetworkChangeNotifierWinTest.*, UMA metrics Review URL: http://codereview.chromium.org/7886036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104120 0039d316-1c4b-4281-b951-d872f2087c98
* net: disable 1/n-1 record splitting when False Start is disabled.agl@chromium.org2011-10-052-13/+15
| | | | | | | | | | | | | | Brocade SSL terminators are intolerant to 1/n-1 record splitting as well. For the sake of getting M15 out the door, this patch uses the False Start blacklist in order to switch off 1/n-1 record splitting too. This is deeply unfortunate but will be reverted on trunk as soon as it can be merged to M15. BUG=98908 TEST=none Review URL: http://codereview.chromium.org/8137027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104119 0039d316-1c4b-4281-b951-d872f2087c98
* Bocking onReceivedHeaders signal for webRequest APIbattre@chromium.org2011-10-0510-50/+204
| | | | | | | | | | | | | | This is a new signal that allows extensions to - Modify/Delete cookies of HTTP responses before they are seen by the cookie monster. - Cancel requests based on the length or content type of the HTTP response. BUG=89118 TEST=no Review URL: http://codereview.chromium.org/7931026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104091 0039d316-1c4b-4281-b951-d872f2087c98
* Return an error when multiple Location or Content-Dispositionmmenke@chromium.org2011-10-043-20/+158
| | | | | | | | | | | | headers are received. Also add text for the new errors, and add text for the related Content-Length error. BUG=98895 TEST=HttpNetworkTransactionTest.*ContentDispositionHeader, HttpNetworkTransactionTest.*LocationHeader Review URL: http://codereview.chromium.org/8136003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104016 0039d316-1c4b-4281-b951-d872f2087c98
* net: add NetSol's EV OIDs to cross-certifying roots.agl@chromium.org2011-10-041-2/+14
| | | | | | | | | | | | | | Chain building for certificates issued by Network Solutions can end up at a cross-certifying root. This change adds the NetSol EV OIDs to the roots which cross-sign it so that we still recognise them as EV. BUG=42702 TEST=Check that https://www.networksolutions.com is EV on all platforms. Review URL: http://codereview.chromium.org/8118033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104007 0039d316-1c4b-4281-b951-d872f2087c98
* net: update COMODO and Network Solutions EV root hashesagl@chromium.org2011-10-041-0/+14
| | | | | | | | | | | | | COMODO and Network Solutions EV root certificates have been reissued, changing their hash. The public keys are still the same. BUG=98858,98856 TEST=Check that EV leaves issued from these roots are still considered EV after the MS root update. Review URL: http://codereview.chromium.org/8113003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103999 0039d316-1c4b-4281-b951-d872f2087c98
* net: add certificate pins for Twitter.agl@chromium.org2011-10-042-15/+189
| | | | | | | | | | | (Note some lines exceed 80 chars here. Readability suffers by linebreaking so I'm sticking with it.) BUG=none TEST=twitter.com still works Review URL: http://codereview.chromium.org/8084008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103945 0039d316-1c4b-4281-b951-d872f2087c98
* net: add ifbyphone.com to the False Start blacklist.agl@chromium.org2011-10-041-0/+1
| | | | | | | | They are also running Brocade and are also affected by the break in Chrome 15. BUG=98908 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103939 0039d316-1c4b-4281-b951-d872f2087c98
* Introduce a new CompletionCallback and TestCompletionCallback.willchan@chromium.org2011-10-047-44/+88
| | | | | | | | | | | | Start using it in DnsRRResolver. BUG=98719 TEST=none Review URL: http://codereview.chromium.org/8095026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103885 0039d316-1c4b-4281-b951-d872f2087c98
* Fix libssl to build properly with use_system_zlib==0.bradchen@google.com2011-10-041-1/+3
| | | | | | | | | | | | | | This CL replaces CL 8059021, lost due to a git repo accident. TBR=wtc BUG=30704 TEST=build chromotocol_test_client Review URL: http://codereview.chromium.org/8113013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103880 0039d316-1c4b-4281-b951-d872f2087c98
* Added a pyauto test for policy and preferences UI.joaodasilva@chromium.org2011-10-041-1/+1
| | | | | | | | | | | | This test verifies that preferences controlled by policy display the "managed by admin" banner on chrome://settings pages. BUG=None, but found a lot of other bugs! TEST=None Review URL: http://codereview.chromium.org/8021005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103876 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 103326 - Disable logging to console in TestServer (bug occured again)battre@chromium.org2011-10-041-0/+4
| | | | | | | | | | | | | | | This CL disables the logging of all output of the test server to the console by default. This was introduced to debug flakyness (http://crbug.com/96594) that vanished. BUG=96594 TEST=no Review URL: http://codereview.chromium.org/8060050 TBR=battre@chromium.org Review URL: http://codereview.chromium.org/8122018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103859 0039d316-1c4b-4281-b951-d872f2087c98
* Support selection of SPDY on port other than 443jar@chromium.org2011-10-042-18/+229
| | | | | | | | bug=93351 r=wtc Review URL: http://codereview.chromium.org/7677025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103836 0039d316-1c4b-4281-b951-d872f2087c98
* NetworkDelegate::OnAuthRequired can set or cancel auth, in addition to ↵cbentzel@chromium.org2011-10-0311-78/+470
| | | | | | | | | | | | taking no action. BUG=32056 TEST=net_unittests Review URL: http://codereview.chromium.org/8100001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103801 0039d316-1c4b-4281-b951-d872f2087c98
* net: add a number of entries to the False Start blocklist.agl@chromium.org2011-10-031-0/+9
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103769 0039d316-1c4b-4281-b951-d872f2087c98
* net: update NSS patches.agl@chromium.org2011-10-0316-341/+322
| | | | | | | This change doesn't alter anything about the patches, it just makes them apply cleanly on top of one another in preparation for altering the NPN patch. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103728 0039d316-1c4b-4281-b951-d872f2087c98
* [cros] Transfer proxy HTTP authentication from login screen into new session.ivankr@chromium.org2011-10-033-0/+105
| | | | | | | | | BUG=chromium-os:20992 TEST=net_unittests: HttpAuthCacheTest.*; Manual: enable proxies on shared networks, open login screen, set a proxy that requires user authentication, add new user; upon sign-in, no additional username/password prompt should appear. Review URL: http://codereview.chromium.org/8083004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103703 0039d316-1c4b-4281-b951-d872f2087c98
* net: Move UnescapeURLComponent() functions into net namespace.tfarina@chromium.org2011-10-023-15/+14
| | | | | | | | | | | BUG=64263 TEST=None R=willchan@chromium.org Review URL: http://codereview.chromium.org/8109004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103677 0039d316-1c4b-4281-b951-d872f2087c98
* Begin CompletionCallback switchover.willchan@chromium.org2011-10-01263-1718/+1718
| | | | | | | | | | | | | Rename CompletionCallback to OldCompletionCallback in preparation for introducing a new CompletionCallback based on base::Callback. Also renames other CompletionCallback types like CancelableCompletionCallback and TestCompletionCallback and CompletionCallbackImpl. All using sed with s/CompletionCallback/OldCompletionCallback/g. BUG=98719 TEST=none Review URL: http://codereview.chromium.org/8070013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103650 0039d316-1c4b-4281-b951-d872f2087c98
* Update cbcrandomiv.patch to the currently proposed patch (v10) for thewtc@chromium.org2011-09-302-106/+286
| | | | | | | | | | | | NSS upstream in https://bugzilla.mozilla.org/show_bug.cgi?id=665814. R=agl@chromium.org BUG=87159 TEST=HTTPS sites continue to work. Review URL: http://codereview.chromium.org/8084004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103517 0039d316-1c4b-4281-b951-d872f2087c98
* Remove static which requires a static initializer.agl@chromium.org2011-09-301-3/+4
| | | | | | (This code isn't in use yet, so the fix is simple and greens the tree.) git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103468 0039d316-1c4b-4281-b951-d872f2087c98
* Add CRL set updater.agl@chromium.org2011-09-303-1/+19
| | | | | | | | | | | | | This is just a dormant component updater for CRL sets. Since the call to start the initial load is commented out it's actually inactive, but it helps to split the CRL set change into parts to make it more easily reviewable. BUG=none TEST=none Review URL: http://codereview.chromium.org/8056013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103466 0039d316-1c4b-4281-b951-d872f2087c98
* Minor cleanup of Mac/Linux network change notifier code:mmenke@chromium.org2011-09-306-15/+22
| | | | | | | | | | | | | Add OVERRIDE, replace NewRunnableMethod with Bind, fix a couple includes. BUG=none TEST=compiles Review URL: http://codereview.chromium.org/8073027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103402 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 103360 - NetworkDelegate::OnAuthRequired can set authentication or ↵ddorwin@chromium.org2011-09-2911-466/+74
| | | | | | | | | | | | | | | | cancel, in addition to observing. TBR=ananta@chromium.org BUG=32056 TEST=net_unittests Review URL: http://codereview.chromium.org/8037038 TBR=cbentzel@chromium.org Review URL: http://codereview.chromium.org/8082010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103372 0039d316-1c4b-4281-b951-d872f2087c98
* net: add (*.)luneta.nearbuysystems.com to HSTS preloaded.agl@chromium.org2011-09-292-0/+8
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103371 0039d316-1c4b-4281-b951-d872f2087c98
* Fix build with Heimdal.phajdan.jr@chromium.org2011-09-291-0/+10
| | | | | | | | BUG=none Review URL: http://codereview.chromium.org/8038051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103369 0039d316-1c4b-4281-b951-d872f2087c98
* NetworkDelegate::OnAuthRequired can set authentication or cancel, in ↵cbentzel@chromium.org2011-09-2911-74/+466
| | | | | | | | | | | | | addition to observing. TBR=ananta@chromium.org BUG=32056 TEST=net_unittests Review URL: http://codereview.chromium.org/8037038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103360 0039d316-1c4b-4281-b951-d872f2087c98
* Disk Cache: Eliminate a race in one of the new testsrvargas@google.com2011-09-291-0/+1
| | | | | | | | | | | created by r103323 BUG=73102 TEST=green memory tree TBR=gavinp Review URL: http://codereview.chromium.org/8088001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103349 0039d316-1c4b-4281-b951-d872f2087c98
* Reinstate princeton.edu in the False Start blacklist.agl@chromium.org2011-09-291-0/+1
| | | | | | | | | princeton.edu will be switching SSL loadbalancers in a few months so qualify for blacklisting based on the temporary nature of the issue. BUG=98604 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103337 0039d316-1c4b-4281-b951-d872f2087c98
* Disable logging to console in TestServerbattre@chromium.org2011-09-291-4/+0
| | | | | | | | | | | | This CL disables the logging of all output of the test server to the console by default. This was introduced to debug flakyness (http://crbug.com/96594) that vanished. BUG=96594 TEST=no Review URL: http://codereview.chromium.org/8060050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103326 0039d316-1c4b-4281-b951-d872f2087c98
* Disk Cache: Improve handling of dirty entries.rvargas@google.com2011-09-2911-62/+528
| | | | | | | | | | | | | | | | | | | | | | | * Split the entry sanity checks in two parts: a critical one and a non-critical one. This allows us to return dirty entries instead of failing to open them. * Make sure that we cannot reach an entry through the index before the actual data reaches the disk (when creating an entry linked through a parent we were not respecting that). * When deleting a block from a block file, first clean it up and then update the map (avoid leaving a dirty free block if there is a crash) * Handle the case of errors when opening entries through the enumerations path. BUG=73102 TEST=net_unittests Review URL: http://codereview.chromium.org/8065015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103323 0039d316-1c4b-4281-b951-d872f2087c98
* GCC 4.6 -Wunused-but-set-variable cleanup.pph34r@gmail.com2011-09-291-10/+0
| | | | | | | | | | BUG=87490 TEST=net_unittests Review URL: http://codereview.chromium.org/7273064 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103307 0039d316-1c4b-4281-b951-d872f2087c98
* Decouples TransportSecurityState from NSS.bulach@chromium.org2011-09-292-32/+109
| | | | | | | | | | | | Adds support for TransportSecurityState to run on top of OpenSSL. BUG= TEST=TransportSecurityStateTest.* Review URL: http://codereview.chromium.org/8050021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103276 0039d316-1c4b-4281-b951-d872f2087c98
* Use status code 307 instead of 302 when redirecting requests on behalf ofmpcomplete@chromium.org2011-09-294-2/+157
| | | | | | | | | | | | | | | extensions using the webRequest API. This preserves the original request's method and parameters, allowing POST requests to work. BUG=92882 TEST=no Review URL: http://codereview.chromium.org/8028044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103221 0039d316-1c4b-4281-b951-d872f2087c98
* Update SHA1_LENGTH -> kSHA1Length to match previous change to SHA256_LENGTH.pkasting@chromium.org2011-09-284-18/+12
| | | | | | | | | | (I didn't try and understand or fix why kSHA1Length is in base:: while kSHA256Length is in crypto::.) BUG=92247 TEST=compiles Review URL: http://codereview.chromium.org/7972024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103179 0039d316-1c4b-4281-b951-d872f2087c98
* Recover from bad proxy settings pointing to non-proxy servers that reply anyway.joaodasilva@chromium.org2011-09-281-0/+2
| | | | | | | | | | | | Added tests for proxy error recovery. BUG=chromium-os:20775 TEST=DeviceManagementServiceTest.*. Steps described in the bug now work as expected. Review URL: http://codereview.chromium.org/8054013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103172 0039d316-1c4b-4281-b951-d872f2087c98
* FTP: fix compatibility problem with ftp.comconlink.co.zaphajdan.jr@chromium.org2011-09-281-2/+0
| | | | | | | | | | | | We should also treat transient errors for USER and PASS as requiring auth. Also note very similar issue 25023. BUG=98212 Review URL: http://codereview.chromium.org/8059028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103129 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a crash when loading a multipart html page.tony@chromium.org2011-09-271-1/+30
| | | | | | | | | | | | | When loading a multipart page, the load hasn't been committed yet so dataSource() is NULL. In that case, use the provisionalDataSource(). BUG=97592 TEST=covered by browser_tests Review URL: http://codereview.chromium.org/8044003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103027 0039d316-1c4b-4281-b951-d872f2087c98
* Fix Windows shared library build.phajdan.jr@chromium.org2011-09-271-1/+2
| | | | | | | | | | TBR=willchan BUG=none Review URL: http://codereview.chromium.org/8050027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103013 0039d316-1c4b-4281-b951-d872f2087c98
* Make TransportSecurityState not ref-counted for simplicity.phajdan.jr@chromium.org2011-09-277-551/+543
| | | | | | | | BUG=none Review URL: http://codereview.chromium.org/8054001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103012 0039d316-1c4b-4281-b951-d872f2087c98
* net: make HSTS hosts use the normal SSL interstitialsagl@chromium.org2011-09-2711-50/+42
| | | | | | | | | | | | | | | | | | | | | | | (Reland of r102947, which was reverted in r102950.) SSL interstitials have better translations for the error messages and this returns us to the point where we have only a single UI for SSL errors, which will make some future changes easier. First, this change changes the SSL error callbacks to take an SSLInfo& rather than a X509Certificate* (which was already a TODO(wtc) in the code). Most of this change is the resulting plumbing. It also adds a |is_hsts_host| flag to the callbacks to denote an HSTS host. Finally, in ssl_policy.cc the |is_hsts_host| flag causes any error to be fatal. BUG=93527 http://codereview.chromium.org/7976036/ git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102994 0039d316-1c4b-4281-b951-d872f2087c98
* Address wtc's comments in http://codereview.chromium.org/7461088agl@chromium.org2011-09-272-9/+10
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102993 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "net: make HSTS hosts use the normal SSL interstitials"agl@chromium.org2011-09-2710-40/+49
| | | | | | | This reverts commit r102947. It broke the shared build, probably because of a missing NET_EXPORT. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102950 0039d316-1c4b-4281-b951-d872f2087c98
* net: make HSTS hosts use the normal SSL interstitialsagl@chromium.org2011-09-2710-49/+40
| | | | | | | | | | | | | | | | | | | | | SSL interstitials have better translations for the error messages and this returns us to the point where we have only a single UI for SSL errors, which will make some future changes easier. First, this change changes the SSL error callbacks to take an SSLInfo& rather than a X509Certificate* (which was already a TODO(wtc) in the code). Most of this change is the resulting plumbing. It also adds a |is_hsts_host| flag to the callbacks to denote an HSTS host. Finally, in ssl_policy.cc the |is_hsts_host| flag causes any error to be fatal. BUG=93527 http://codereview.chromium.org/7976036/ git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102947 0039d316-1c4b-4281-b951-d872f2087c98
* net: fix crash when failing to import a client-side cert into NSS.agl@chromium.org2011-09-272-17/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (See the attached bug for details of the crash.) I believe the crash happens here (secitem.c:240): SECStatus SECITEM_CopyItem(PRArenaPool *arena, SECItem *to, const SECItem *from) { to->type = from->type; This is called from sslplatf.c:87: for (len = 0, node = CERT_LIST_HEAD(list); !CERT_LIST_END(node, list); len++, node = CERT_LIST_NEXT(node)) { // Check to see if the last cert to be sent is a self-signed cert, // and if so, omit it from the list of certificates. However, if // there is only one cert (len == 0), include the cert, as it means // the EE cert is self-signed. if (len > 0 && (len == chain->len - 1) && node->cert->isRoot) { chain->len = len; break; } SECITEM_CopyItem(arena, &chain->certs[len], &node->cert->derCert); } I think node->cert is NULL an that the compiler is confusing things by having SECITEM_CopyItem on the stack. The list of certs eventually comes from SSLClientSocketNSS::PlatformClientAuthHandler which doesn't check for NULL results when importing the certificates. The reporter notes that the certificate had a duplicate issuer and serial, which does cause NSS to reject certificates in some cases. BUG=97355 TEST=none Review URL: http://codereview.chromium.org/7995009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102943 0039d316-1c4b-4281-b951-d872f2087c98
* Fallback from platform client auth to NSS client auth.mattm@chromium.org2011-09-277-280/+321
| | | | | | | | | | | Adds support for origin bound certs on Win and Mac. BUG=88782 TEST=normal SSL client auth still works & origin-bound auth works following origin-bound testing doc. Review URL: http://codereview.chromium.org/7839025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102877 0039d316-1c4b-4281-b951-d872f2087c98