diff options
author | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-12 19:46:27 +0000 |
---|---|---|
committer | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-12 19:46:27 +0000 |
commit | 8d3718970504d75dea10ba8a523f5d2219627071 (patch) | |
tree | 5c148f80c5fe5cc768c79c52f292a72707041a37 /net/socket/ssl_host_info.cc | |
parent | 37779e0d685e3e8cf948ebae2bb7dc9c04aa876f (diff) | |
download | chromium_src-8d3718970504d75dea10ba8a523f5d2219627071.zip chromium_src-8d3718970504d75dea10ba8a523f5d2219627071.tar.gz chromium_src-8d3718970504d75dea10ba8a523f5d2219627071.tar.bz2 |
Revert r61181.
This reverts r61181 although, due to the age of that revision, the revert was
mostly done manually. This is the start of ripping out Snap Start support.
BUG=none
TEST=none
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81288 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/socket/ssl_host_info.cc')
-rw-r--r-- | net/socket/ssl_host_info.cc | 34 |
1 files changed, 11 insertions, 23 deletions
diff --git a/net/socket/ssl_host_info.cc b/net/socket/ssl_host_info.cc index 9d631bb..8e08054 100644 --- a/net/socket/ssl_host_info.cc +++ b/net/socket/ssl_host_info.cc @@ -15,17 +15,12 @@ namespace net { -SSLHostInfo::State::State() - : npn_valid(false), - npn_status(SSLClientSocket::kNextProtoUnsupported) { -} +SSLHostInfo::State::State() {} SSLHostInfo::State::~State() {} void SSLHostInfo::State::Clear() { certs.clear(); - server_hello.clear(); - npn_valid = false; } SSLHostInfo::SSLHostInfo( @@ -46,7 +41,6 @@ SSLHostInfo::SSLHostInfo( dnsrr_resolver_(NULL), dns_callback_(NULL), dns_handle_(DnsRRResolver::kInvalidHandle) { - state_.npn_valid = false; } SSLHostInfo::~SSLHostInfo() { @@ -100,19 +94,20 @@ bool SSLHostInfo::ParseInner(const std::string& data) { state->certs.push_back(der_cert); } - if (!p.ReadString(&iter, &state->server_hello)) + std::string throwaway_string; + bool throwaway_bool; + if (!p.ReadString(&iter, &throwaway_string)) return false; - if (!p.ReadBool(&iter, &state->npn_valid)) + if (!p.ReadBool(&iter, &throwaway_bool)) return false; - if (state->npn_valid) { - int status; - if (!p.ReadInt(&iter, &status) || - !p.ReadString(&iter, &state->npn_protocol)) { + if (throwaway_bool) { + int throwaway_int; + if (!p.ReadInt(&iter, &throwaway_int) || + !p.ReadString(&iter, &throwaway_string)) { return false; } - state->npn_status = static_cast<SSLClientSocket::NextProtoStatus>(status); } if (!state->certs.empty()) { @@ -166,18 +161,11 @@ std::string SSLHostInfo::Serialize() const { return ""; } - if (!p.WriteString(state_.server_hello) || - !p.WriteBool(state_.npn_valid)) { + if (!p.WriteString("") || + !p.WriteBool(false)) { return ""; } - if (state_.npn_valid) { - if (!p.WriteInt(state_.npn_status) || - !p.WriteString(state_.npn_protocol)) { - return ""; - } - } - return std::string(reinterpret_cast<const char *>(p.data()), p.size()); } |