From 19a97eb06c40a9f2dba9730d7a7f76799e1e463d Mon Sep 17 00:00:00 2001 From: "sergeyu@chromium.org" Date: Wed, 25 Jul 2012 00:07:00 +0000 Subject: Enable cert pinning for XMPP connection made by XmppClientSocketFactory. Review URL: https://chromiumcodereview.appspot.com/10807081 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148251 0039d316-1c4b-4281-b951-d872f2087c98 --- jingle/glue/xmpp_client_socket_factory.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'jingle') diff --git a/jingle/glue/xmpp_client_socket_factory.cc b/jingle/glue/xmpp_client_socket_factory.cc index 13749e1..b9e040d 100644 --- a/jingle/glue/xmpp_client_socket_factory.cc +++ b/jingle/glue/xmpp_client_socket_factory.cc @@ -46,6 +46,9 @@ net::SSLClientSocket* XmppClientSocketFactory::CreateSSLClientSocket( net::SSLClientSocketContext context; context.cert_verifier = request_context_getter_->GetURLRequestContext()->cert_verifier(); + context.transport_security_state = request_context_getter_-> + GetURLRequestContext()->transport_security_state(); + DCHECK(context.transport_security_state); // TODO(rkn): context.server_bound_cert_service is NULL because the // ServerBoundCertService class is not thread safe. return client_socket_factory_->CreateSSLClientSocket( -- cgit v1.1