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

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

Issue 1802013002: A bunch of interfaces: Return scoped_ptr<SSLCertificate> (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 4 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
Index: webrtc/p2p/base/dtlstransportchannel.cc
diff --git a/webrtc/p2p/base/dtlstransportchannel.cc b/webrtc/p2p/base/dtlstransportchannel.cc
index 33b5b6f268e6cbc298f170b8504ca422116939d2..027f92be8ea21f78f16d718571102ad78f8ab75c 100644
--- a/webrtc/p2p/base/dtlstransportchannel.cc
+++ b/webrtc/p2p/base/dtlstransportchannel.cc
@@ -248,13 +248,13 @@ bool DtlsTransportChannelWrapper::SetRemoteFingerprint(
return true;
}
-bool DtlsTransportChannelWrapper::GetRemoteSSLCertificate(
- rtc::SSLCertificate** cert) const {
+rtc::scoped_ptr<rtc::SSLCertificate>
+DtlsTransportChannelWrapper::GetRemoteSSLCertificate() const {
if (!dtls_) {
- return false;
+ return nullptr;
}
- return dtls_->GetPeerCertificate(cert);
+ return dtls_->GetPeerCertificate();
}
bool DtlsTransportChannelWrapper::SetupDtls() {

Powered by Google App Engine
This is Rietveld 408576698