diff options
author | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-23 03:16:25 +0000 |
---|---|---|
committer | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-23 03:16:25 +0000 |
commit | 778f0ee11c9b391ac76fff4ab04bd4f13fbc23d9 (patch) | |
tree | 813662d964145ea1f6af3f622d59b9f9b62b1c2e /remoting/jingle_glue/ssl_socket_adapter.cc | |
parent | 7c5430087b833abff7ed8527584646af1078085f (diff) | |
download | chromium_src-778f0ee11c9b391ac76fff4ab04bd4f13fbc23d9.zip chromium_src-778f0ee11c9b391ac76fff4ab04bd4f13fbc23d9.tar.gz chromium_src-778f0ee11c9b391ac76fff4ab04bd4f13fbc23d9.tar.bz2 |
Add CertVerifier to SocketStreamAdapter
BUG=None
TEST=None
Review URL: http://codereview.chromium.org/6072007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70030 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/jingle_glue/ssl_socket_adapter.cc')
-rw-r--r-- | remoting/jingle_glue/ssl_socket_adapter.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/remoting/jingle_glue/ssl_socket_adapter.cc b/remoting/jingle_glue/ssl_socket_adapter.cc index d6cf99c..95d129b 100644 --- a/remoting/jingle_glue/ssl_socket_adapter.cc +++ b/remoting/jingle_glue/ssl_socket_adapter.cc @@ -7,6 +7,7 @@ #include "base/compiler_specific.h" #include "base/message_loop.h" #include "net/base/address_list.h" +#include "net/base/cert_verifier.h" #include "net/base/host_port_pair.h" #include "net/base/net_errors.h" #include "net/base/ssl_config_service.h" @@ -24,6 +25,7 @@ SSLSocketAdapter* SSLSocketAdapter::Create(AsyncSocket* socket) { SSLSocketAdapter::SSLSocketAdapter(AsyncSocket* socket) : SSLAdapter(socket), ignore_bad_cert_(false), + cert_verifier_(new net::CertVerifier()), ALLOW_THIS_IN_INITIALIZER_LIST( connected_callback_(this, &SSLSocketAdapter::OnConnected)), ALLOW_THIS_IN_INITIALIZER_LIST( @@ -70,7 +72,7 @@ int SSLSocketAdapter::BeginSSL() { net::ClientSocketFactory::GetDefaultFactory()->CreateSSLClientSocket( transport_socket_, net::HostPortPair(hostname_, 443), ssl_config, NULL /* ssl_host_info */, - NULL /* TODO(wtc): cert_verifier */)); + cert_verifier_.get())); int result = ssl_socket_->Connect(&connected_callback_); |