summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-25 00:07:00 +0000
committersergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-25 00:07:00 +0000
commit19a97eb06c40a9f2dba9730d7a7f76799e1e463d (patch)
tree13d5ccb5f50177f1bf793d37e49d16b572615138
parent865588887a6b64bdb7d63bac5d106c150b021998 (diff)
downloadchromium_src-19a97eb06c40a9f2dba9730d7a7f76799e1e463d.zip
chromium_src-19a97eb06c40a9f2dba9730d7a7f76799e1e463d.tar.gz
chromium_src-19a97eb06c40a9f2dba9730d7a7f76799e1e463d.tar.bz2
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
-rw-r--r--jingle/glue/xmpp_client_socket_factory.cc3
1 files changed, 3 insertions, 0 deletions
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(