| Index: webrtc/base/sslstreamadapter.h
|
| diff --git a/webrtc/base/sslstreamadapter.h b/webrtc/base/sslstreamadapter.h
|
| index dcb802972c715c7c6e3d804e82eb8247cdb2bc24..73b715190a9eec3f54c30982993bacce1575bbfc 100644
|
| --- a/webrtc/base/sslstreamadapter.h
|
| +++ b/webrtc/base/sslstreamadapter.h
|
| @@ -14,6 +14,7 @@
|
| #include <string>
|
| #include <vector>
|
|
|
| +#include "talk/app/webrtc/dtlscertificate.h"
|
| #include "webrtc/base/stream.h"
|
| #include "webrtc/base/sslidentity.h"
|
|
|
| @@ -64,13 +65,11 @@ class SSLStreamAdapter : public StreamAdapterInterface {
|
| void set_client_auth_enabled(bool enabled) { client_auth_enabled_ = enabled; }
|
| bool client_auth_enabled() const { return client_auth_enabled_; }
|
|
|
| - // Specify our SSL identity: key and certificate. Mostly this is
|
| - // only used in the peer-to-peer mode (unless we actually want to
|
| - // provide a client certificate to a server).
|
| - // SSLStream takes ownership of the SSLIdentity object and will
|
| - // free it when appropriate. Should be called no more than once on a
|
| - // given SSLStream instance.
|
| - virtual void SetIdentity(SSLIdentity* identity) = 0;
|
| + // Specify our DtlsCertificate containing an SSL identity: our key and
|
| + // SSLCertificate. Mostly this is only used in the peer-to-peer mode (unless
|
| + // we actually want to provide a client certificate to a server).
|
| + virtual void SetCertificate(
|
| + scoped_refptr<webrtc::DtlsCertificate> certificate) = 0;
|
|
|
| // Call this to indicate that we are to play the server's role in
|
| // the peer-to-peer mode.
|
|
|