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

Unified Diff: webrtc/p2p/base/jseptransport.cc

Issue 2681403002: Merge to M57: Only set certificate on DTLS transport if fingerprint is found in SDP. (Closed)
Patch Set: Changing upstream branch to m57 Created 3 years, 10 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 | « webrtc/p2p/base/faketransportcontroller.h ('k') | webrtc/p2p/base/transportcontroller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/p2p/base/jseptransport.cc
diff --git a/webrtc/p2p/base/jseptransport.cc b/webrtc/p2p/base/jseptransport.cc
index c3d6755056706c6215078d71506d26db43984aa1..3456219acf6392d67430ac66c9f8d31412d740b1 100644
--- a/webrtc/p2p/base/jseptransport.cc
+++ b/webrtc/p2p/base/jseptransport.cc
@@ -328,7 +328,12 @@ bool JsepTransport::ApplyLocalTransportDescription(
TransportChannelImpl* channel,
std::string* error_desc) {
channel->SetIceParameters(local_description_->GetIceParameters());
- return true;
+ bool ret = true;
+ if (certificate_) {
+ ret = channel->SetLocalCertificate(certificate_);
+ RTC_DCHECK(ret);
+ }
+ return ret;
}
bool JsepTransport::ApplyRemoteTransportDescription(
« no previous file with comments | « webrtc/p2p/base/faketransportcontroller.h ('k') | webrtc/p2p/base/transportcontroller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698