Index: webrtc/p2p/base/transport.h |
diff --git a/webrtc/p2p/base/transport.h b/webrtc/p2p/base/transport.h |
index 4093240f3e0a3221336988d6a4d436a44d615967..4a20a034f44056f12346b876c400417cc7f66708 100644 |
--- a/webrtc/p2p/base/transport.h |
+++ b/webrtc/p2p/base/transport.h |
@@ -38,6 +38,7 @@ |
#include "webrtc/p2p/base/transportinfo.h" |
#include "webrtc/base/criticalsection.h" |
#include "webrtc/base/messagequeue.h" |
+#include "webrtc/base/rtccertificate.h" |
#include "webrtc/base/sigslot.h" |
#include "webrtc/base/sslstreamadapter.h" |
@@ -200,10 +201,11 @@ class Transport : public rtc::MessageHandler, |
void SetChannelReceivingTimeout(int timeout_ms); |
// Must be called before applying local session description. |
- void SetIdentity(rtc::SSLIdentity* identity); |
+ void SetCertificate( |
+ const rtc::scoped_refptr<rtc::RTCCertificate>& certificate); |
// Get a copy of the local identity provided by SetIdentity. |
- bool GetIdentity(rtc::SSLIdentity** identity); |
+ bool GetCertificate(rtc::scoped_refptr<rtc::RTCCertificate>* certificate); |
// Get a copy of the remote certificate in use by the specified channel. |
bool GetRemoteCertificate(rtc::SSLCertificate** cert); |
@@ -299,9 +301,11 @@ class Transport : public rtc::MessageHandler, |
return remote_description_.get(); |
} |
- virtual void SetIdentity_w(rtc::SSLIdentity* identity) {} |
+ virtual void SetCertificate_w( |
+ const rtc::scoped_refptr<rtc::RTCCertificate>& certificate) {} |
- virtual bool GetIdentity_w(rtc::SSLIdentity** identity) { |
+ virtual bool GetCertificate_w( |
+ rtc::scoped_refptr<rtc::RTCCertificate>* certificate) { |
return false; |
} |