| Index: webrtc/p2p/base/transportdescriptionfactory.h
|
| diff --git a/webrtc/p2p/base/transportdescriptionfactory.h b/webrtc/p2p/base/transportdescriptionfactory.h
|
| index 2bd86617ed6020cc4c9a1ecfc091c186bacdd7f1..b964baf21e37d934c2edb898cf5556b0e173abcd 100644
|
| --- a/webrtc/p2p/base/transportdescriptionfactory.h
|
| +++ b/webrtc/p2p/base/transportdescriptionfactory.h
|
| @@ -11,6 +11,7 @@
|
| #ifndef WEBRTC_P2P_BASE_TRANSPORTDESCRIPTIONFACTORY_H_
|
| #define WEBRTC_P2P_BASE_TRANSPORTDESCRIPTIONFACTORY_H_
|
|
|
| +#include "webrtc/base/scoped_ptr.h"
|
| #include "webrtc/p2p/base/transportdescription.h"
|
|
|
| namespace rtc {
|
| @@ -34,12 +35,14 @@ class TransportDescriptionFactory {
|
| TransportDescriptionFactory();
|
| SecurePolicy secure() const { return secure_; }
|
| // The identity to use when setting up DTLS.
|
| - rtc::SSLIdentity* identity() const { return identity_; }
|
| + rtc::SSLIdentity* identity() const { return identity_.get(); }
|
|
|
| // Specifies the transport security policy to use.
|
| void set_secure(SecurePolicy s) { secure_ = s; }
|
| // Specifies the identity to use (only used when secure is not SEC_DISABLED).
|
| - void set_identity(rtc::SSLIdentity* identity) { identity_ = identity; }
|
| + void set_identity(rtc::SSLIdentity* identity) {
|
| + identity_.reset(identity->GetReference());
|
| + }
|
|
|
| // Creates a transport description suitable for use in an offer.
|
| TransportDescription* CreateOffer(const TransportOptions& options,
|
| @@ -55,7 +58,7 @@ class TransportDescriptionFactory {
|
| ConnectionRole role) const;
|
|
|
| SecurePolicy secure_;
|
| - rtc::SSLIdentity* identity_;
|
| + ::rtc::scoped_ptr<rtc::SSLIdentity> identity_;
|
| };
|
|
|
| } // namespace cricket
|
|
|