summaryrefslogtreecommitdiffstats
path: root/remoting/protocol/jingle_session.cc
diff options
context:
space:
mode:
authorsergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-16 00:23:03 +0000
committersergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-16 00:23:03 +0000
commit1f528b557f829a838ffa0767a49ce5a55a0b2343 (patch)
tree76d8e3c0f4288e808e0fe939a90c6f9eaadbb451 /remoting/protocol/jingle_session.cc
parentca7c456246121d7e17c22181f0a76eb5c79d3ac0 (diff)
downloadchromium_src-1f528b557f829a838ffa0767a49ce5a55a0b2343.zip
chromium_src-1f528b557f829a838ffa0767a49ce5a55a0b2343.tar.gz
chromium_src-1f528b557f829a838ffa0767a49ce5a55a0b2343.tar.bz2
Don't use X509Certificate in chromoting code.
X509Certificate currently is not usable in sandbox on Mac. Don't use it in chromoting code. BUG=80587 TEST=Unittests Review URL: http://codereview.chromium.org/7401005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92772 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/protocol/jingle_session.cc')
-rw-r--r--remoting/protocol/jingle_session.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/remoting/protocol/jingle_session.cc b/remoting/protocol/jingle_session.cc
index f7d61f1..7c05d2b 100644
--- a/remoting/protocol/jingle_session.cc
+++ b/remoting/protocol/jingle_session.cc
@@ -86,20 +86,20 @@ bool GetChannelKey(const std::string& channel_name,
// static
JingleSession* JingleSession::CreateClientSession(
JingleSessionManager* manager, const std::string& host_public_key) {
- return new JingleSession(manager, NULL, NULL, host_public_key);
+ return new JingleSession(manager, "", NULL, host_public_key);
}
// static
JingleSession* JingleSession::CreateServerSession(
JingleSessionManager* manager,
- scoped_refptr<net::X509Certificate> certificate,
+ const std::string& certificate,
crypto::RSAPrivateKey* key) {
return new JingleSession(manager, certificate, key, "");
}
JingleSession::JingleSession(
JingleSessionManager* jingle_session_manager,
- scoped_refptr<net::X509Certificate> local_cert,
+ const std::string& local_cert,
crypto::RSAPrivateKey* local_private_key,
const std::string& peer_public_key)
: jingle_session_manager_(jingle_session_manager),
@@ -261,7 +261,7 @@ void JingleSession::set_candidate_config(
candidate_config_.reset(candidate_config);
}
-scoped_refptr<net::X509Certificate> JingleSession::local_certificate() const {
+const std::string& JingleSession::local_certificate() const {
DCHECK(CalledOnValidThread());
return local_cert_;
}
@@ -405,7 +405,8 @@ bool JingleSession::InitializeConfigFromDescription(
static_cast<const protocol::ContentDescription*>(content->description);
CHECK(content_description);
- remote_cert_ = content_description->certificate(); if (!remote_cert_) {
+ remote_cert_ = content_description->certificate();
+ if (remote_cert_.empty()) {
LOG(ERROR) << "Connection response does not specify certificate";
return false;
}