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

Unified Diff: content/renderer/p2p/ipc_socket_factory.cc

Issue 193663003: Push remote hostname to P2P socket host. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 | « content/common/p2p_socket_type.h ('k') | content/renderer/p2p/socket_client_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/p2p/ipc_socket_factory.cc
diff --git a/content/renderer/p2p/ipc_socket_factory.cc b/content/renderer/p2p/ipc_socket_factory.cc
index c7fef8fadc9e5fb059e403ecc161f409d26cc56d..0fe536782a550093259884108caaee6200f7ac3d 100644
--- a/content/renderer/p2p/ipc_socket_factory.cc
+++ b/content/renderer/p2p/ipc_socket_factory.cc
@@ -238,7 +238,12 @@ bool IpcPacketSocket::Init(P2PSocketType type,
return false;
}
- client->Init(type, local_endpoint, remote_endpoint, this);
+ // We need to send both resolved and unresolved address in Init. Unresolved
+ // address will be used in case of TLS for certificate hostname matching.
+ // Certificate will be tied to domain name not to IP address.
+ P2PHostAndIPEndPoint remote_info(remote_address.hostname(), remote_endpoint);
+
+ client->Init(type, local_endpoint, remote_info, this);
return true;
}
« no previous file with comments | « content/common/p2p_socket_type.h ('k') | content/renderer/p2p/socket_client_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698