Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(87)

Unified Diff: jingle/glue/xmpp_client_socket_factory.cc

Issue 10807081: Enable cert pinning for XMPP connection made by XmppClientSocketFactory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: jingle/glue/xmpp_client_socket_factory.cc
diff --git a/jingle/glue/xmpp_client_socket_factory.cc b/jingle/glue/xmpp_client_socket_factory.cc
index 13749e18332fcf1f465ea20573dc4dc8d8146e5b..b9e040d619fa01ca08a46887b6e6b13009e8dd5e 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(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698