| Index: webrtc/p2p/base/fakedtlstransport.h
|
| diff --git a/webrtc/p2p/base/fakedtlstransport.h b/webrtc/p2p/base/fakedtlstransport.h
|
| index 9d5859c4dd51a8c7c968c69a940b35459cc8f505..dba3cbf6c1558673fddd2651a7b754d5b468b2ac 100644
|
| --- a/webrtc/p2p/base/fakedtlstransport.h
|
| +++ b/webrtc/p2p/base/fakedtlstransport.h
|
| @@ -122,6 +122,12 @@ class FakeDtlsTransport : public DtlsTransportInternal {
|
| *role = ssl_role_;
|
| return true;
|
| }
|
| + const rtc::CryptoOptions& crypto_options() const override {
|
| + return crypto_options_;
|
| + }
|
| + void SetCryptoOptions(const rtc::CryptoOptions& crypto_options) {
|
| + crypto_options_ = crypto_options;
|
| + }
|
| bool SetLocalCertificate(
|
| const rtc::scoped_refptr<rtc::RTCCertificate>& certificate) override {
|
| local_cert_ = certificate;
|
| @@ -135,9 +141,12 @@ class FakeDtlsTransport : public DtlsTransportInternal {
|
| if (!do_dtls_) {
|
| return false;
|
| }
|
| - *crypto_suite = rtc::SRTP_AES128_CM_SHA1_80;
|
| + *crypto_suite = crypto_suite_;
|
| return true;
|
| }
|
| + void SetSrtpCryptoSuite(int crypto_suite) {
|
| + crypto_suite_ = crypto_suite;
|
| + }
|
| bool GetSslCipherSuite(int* cipher_suite) override { return false; }
|
| rtc::scoped_refptr<rtc::RTCCertificate> GetLocalCertificate() const override {
|
| return local_cert_;
|
| @@ -230,6 +239,8 @@ class FakeDtlsTransport : public DtlsTransportInternal {
|
| rtc::SSLProtocolVersion ssl_max_version_ = rtc::SSL_PROTOCOL_DTLS_12;
|
| rtc::SSLFingerprint dtls_fingerprint_;
|
| rtc::SSLRole ssl_role_ = rtc::SSL_CLIENT;
|
| + int crypto_suite_ = rtc::SRTP_AES128_CM_SHA1_80;
|
| + rtc::CryptoOptions crypto_options_;
|
|
|
| DtlsTransportState dtls_state_ = DTLS_TRANSPORT_NEW;
|
|
|
|
|