Index: webrtc/base/opensslstreamadapter.cc |
diff --git a/webrtc/base/opensslstreamadapter.cc b/webrtc/base/opensslstreamadapter.cc |
index b09c2a581e5d47fd06864fbc9381113368e52609..abdf5e4834cdecaa6319766e4147d4ea713e525e 100644 |
--- a/webrtc/base/opensslstreamadapter.cc |
+++ b/webrtc/base/opensslstreamadapter.cc |
@@ -22,6 +22,7 @@ |
#include <openssl/dtls1.h> |
#endif |
+#include <memory> |
#include <vector> |
#include "webrtc/base/common.h" |
@@ -293,9 +294,9 @@ void OpenSSLStreamAdapter::SetServerRole(SSLRole role) { |
role_ = role; |
} |
-rtc::scoped_ptr<SSLCertificate> OpenSSLStreamAdapter::GetPeerCertificate() |
+std::unique_ptr<SSLCertificate> OpenSSLStreamAdapter::GetPeerCertificate() |
const { |
- return peer_certificate_ ? rtc::scoped_ptr<SSLCertificate>( |
+ return peer_certificate_ ? std::unique_ptr<SSLCertificate>( |
peer_certificate_->GetReference()) |
: nullptr; |
} |