summaryrefslogtreecommitdiffstats
path: root/remoting/protocol/jingle_session.h
diff options
context:
space:
mode:
authorwez@chromium.org <wez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-28 02:27:56 +0000
committerwez@chromium.org <wez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-28 02:27:56 +0000
commit929dbb7ccd482f8b1cab24fa3a0534f319ed04ea (patch)
tree749f205cb3fe619fc8a4731ec2163411a845dfab /remoting/protocol/jingle_session.h
parente8a23645cfdd4cfc411c2684c70dbf7f4a05658b (diff)
downloadchromium_src-929dbb7ccd482f8b1cab24fa3a0534f319ed04ea.zip
chromium_src-929dbb7ccd482f8b1cab24fa3a0534f319ed04ea.tar.gz
chromium_src-929dbb7ccd482f8b1cab24fa3a0534f319ed04ea.tar.bz2
Log an error and fail to connect on invalid Host response, rather than crashing.
BUG=80583 TEST=Modify a Chromoting Host to supply an malformed certificate, and connect to it. Client should fail to connect, and log an error to the console, rather than crashing. Review URL: http://codereview.chromium.org/6902080 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83286 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/protocol/jingle_session.h')
-rw-r--r--remoting/protocol/jingle_session.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/remoting/protocol/jingle_session.h b/remoting/protocol/jingle_session.h
index b47a7aa..d919d56 100644
--- a/remoting/protocol/jingle_session.h
+++ b/remoting/protocol/jingle_session.h
@@ -97,6 +97,15 @@ class JingleSession : public protocol::Session,
bool HasSession(cricket::Session* cricket_session);
cricket::Session* ReleaseSession();
+ // Initialize the session configuration from a received connection response
+ // stanza.
+ bool InitializeConfigFromDescription(
+ const cricket::SessionDescription* description);
+
+ // Initialize PseudoTCP + SSL on each of the video, control and input
+ // channels. The channels must have been created before this is called.
+ bool InitializeChannels();
+
// Helper method to create and initialize PseudoTCP + SSL socket on
// top of the provided |channel|. The resultant SSL socket is
// written to |ssl_socket|. Return true if successful.