diff options
author | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-10 21:52:27 +0000 |
---|---|---|
committer | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-10 21:52:27 +0000 |
commit | b28f19d7901a742c41987c707168f9f71dc3ea0e (patch) | |
tree | f0b8d142fa83c8b161ffac4f1b472e38c7811af5 /net/base | |
parent | e1b19760199e7a1004684840c1641f934029f27a (diff) | |
download | chromium_src-b28f19d7901a742c41987c707168f9f71dc3ea0e.zip chromium_src-b28f19d7901a742c41987c707168f9f71dc3ea0e.tar.gz chromium_src-b28f19d7901a742c41987c707168f9f71dc3ea0e.tar.bz2 |
Add GetNextProtocol method to SSLClientSocket.
http://codereview.chromium.org/484005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34288 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base')
-rw-r--r-- | net/base/ssl_info.h | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/net/base/ssl_info.h b/net/base/ssl_info.h index 5b637c7..3fe0ce4 100644 --- a/net/base/ssl_info.h +++ b/net/base/ssl_info.h @@ -16,25 +16,12 @@ namespace net { // This is really a struct. All members are public. class SSLInfo { public: - // Next Protocol Negotiation (NPN) allows a TLS client and server to come to - // an agreement about the application level protocol to speak over a - // connection. See also the next_protos field in SSLConfig. - enum NextProtoStatus { - kNextProtoUnsupported = 0, // The server doesn't support NPN. - kNextProtoNegotiated = 1, // We agreed on a protocol, see next_proto - kNextProtoNoOverlap = 2, // No protocols in common. We requested - // |next_proto|. - }; - - SSLInfo() : cert_status(0), security_bits(-1), - next_proto_status(kNextProtoUnsupported) { } + SSLInfo() : cert_status(0), security_bits(-1) { } void Reset() { cert = NULL; security_bits = -1; cert_status = 0; - next_proto.clear(); - next_proto_status = kNextProtoUnsupported; } bool is_valid() const { return cert != NULL; } @@ -56,9 +43,6 @@ class SSLInfo { // 0 means the connection is not encrypted. // -1 means the security strength is unknown. int security_bits; - - NextProtoStatus next_proto_status; // One of kNextProto* - std::string next_proto; // The negotiated protocol, if any. }; } // namespace net |