Verify alternative server certificate validity for origin.
commit1b0e36850193d0bd16669260c8eac374e9e419fe
authorbnc <bnc@chromium.org>
Tue, 28 Apr 2015 15:32:59 +0000 (28 08:32 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 28 Apr 2015 15:33:33 +0000 (28 15:33 +0000)
tree6ec269cc61741a5dc5c4402645a3837783f529cb
parent57167a6b59e6e94c044f89072dac56025cbece0b
Verify alternative server certificate validity for origin.

Verify that the certificate presented by the alternative server is valid for the
origin when using HTTP/2, both when opening a new connection or when pooling to
an existing one.

Patch Set 1:
 * Enable hopping to a different host for HTTP/2 (not for QUIC).
 * Add unittests for both new connection and pooling cases.  Note in trybot
   output that *Valid tests pass and *Invalid tests fail.

Patch Set 2 and up:
 * Verify certificate validity in HttpStreamFactoryImpl::Job.

BUG=474217

Review URL: https://codereview.chromium.org/1074193003

Cr-Commit-Position: refs/heads/master@{#327293}
net/base/net_error_list.h
net/http/http_network_transaction_unittest.cc
net/http/http_stream_factory_impl.cc
net/http/http_stream_factory_impl_job.cc
net/http/http_stream_factory_impl_job.h