diff options
author | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-15 18:40:22 +0000 |
---|---|---|
committer | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-15 18:40:22 +0000 |
commit | f215321e1af0ce516ceae6d8d273dc8d254d6e8e (patch) | |
tree | 446d6b05dace0e076e508d8e1fcd677b529242f3 /remoting/protocol | |
parent | 7b61a0f2553582903f3b24cc3bd40d5564eca2a2 (diff) | |
download | chromium_src-f215321e1af0ce516ceae6d8d273dc8d254d6e8e.zip chromium_src-f215321e1af0ce516ceae6d8d273dc8d254d6e8e.tar.gz chromium_src-f215321e1af0ce516ceae6d8d273dc8d254d6e8e.tar.bz2 |
Don't create CertVerifier in SslHmacChannelAuthenticator
CertVerifier is not useful there because SslHmacChannelAuthenticator
always uses self-signed certs.
BUG=276739
R=jamiewalch@chromium.org
Review URL: https://codereview.chromium.org/238133002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@263945 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/protocol')
-rw-r--r-- | remoting/protocol/ssl_hmac_channel_authenticator.cc | 3 | ||||
-rw-r--r-- | remoting/protocol/ssl_hmac_channel_authenticator.h | 2 |
2 files changed, 0 insertions, 5 deletions
diff --git a/remoting/protocol/ssl_hmac_channel_authenticator.cc b/remoting/protocol/ssl_hmac_channel_authenticator.cc index d8afa81..7e45acd 100644 --- a/remoting/protocol/ssl_hmac_channel_authenticator.cc +++ b/remoting/protocol/ssl_hmac_channel_authenticator.cc @@ -10,7 +10,6 @@ #include "net/base/host_port_pair.h" #include "net/base/io_buffer.h" #include "net/base/net_errors.h" -#include "net/cert/cert_verifier.h" #include "net/cert/x509_certificate.h" #include "net/http/transport_security_state.h" #include "net/socket/client_socket_factory.h" @@ -87,7 +86,6 @@ void SslHmacChannelAuthenticator::SecureAndAuthenticate( base::Bind(&SslHmacChannelAuthenticator::OnConnected, base::Unretained(this))); } else { - cert_verifier_.reset(net::CertVerifier::CreateDefault()); transport_security_state_.reset(new net::TransportSecurityState); net::SSLConfig::CertAndStatus cert_and_status; @@ -105,7 +103,6 @@ void SslHmacChannelAuthenticator::SecureAndAuthenticate( net::HostPortPair host_and_port(kSslFakeHostName, 0); net::SSLClientSocketContext context; - context.cert_verifier = cert_verifier_.get(); context.transport_security_state = transport_security_state_.get(); scoped_ptr<net::ClientSocketHandle> connection(new net::ClientSocketHandle); connection->SetSocket(socket.Pass()); diff --git a/remoting/protocol/ssl_hmac_channel_authenticator.h b/remoting/protocol/ssl_hmac_channel_authenticator.h index 320466c..f4223c4 100644 --- a/remoting/protocol/ssl_hmac_channel_authenticator.h +++ b/remoting/protocol/ssl_hmac_channel_authenticator.h @@ -14,7 +14,6 @@ #include "remoting/protocol/channel_authenticator.h" namespace net { -class CertVerifier; class DrainableIOBuffer; class GrowableIOBuffer; class SSLSocket; @@ -89,7 +88,6 @@ class SslHmacChannelAuthenticator : public ChannelAuthenticator, // Used in the CLIENT mode only. std::string remote_cert_; - scoped_ptr<net::CertVerifier> cert_verifier_; scoped_ptr<net::TransportSecurityState> transport_security_state_; scoped_ptr<net::SSLSocket> socket_; |