OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 | 101 |
102 // DTLS methods. | 102 // DTLS methods. |
103 bool IsDtlsActive() const override { return false; } | 103 bool IsDtlsActive() const override { return false; } |
104 | 104 |
105 // Default implementation. | 105 // Default implementation. |
106 bool GetSslRole(rtc::SSLRole* role) const override { return false; } | 106 bool GetSslRole(rtc::SSLRole* role) const override { return false; } |
107 | 107 |
108 bool SetSslRole(rtc::SSLRole role) override { return false; } | 108 bool SetSslRole(rtc::SSLRole role) override { return false; } |
109 | 109 |
110 // Set up the ciphers to use for DTLS-SRTP. | 110 // Set up the ciphers to use for DTLS-SRTP. |
111 bool SetSrtpCiphers(const std::vector<std::string>& ciphers) override { | 111 bool SetSrtpCryptoSuites(const std::vector<int>& ciphers) override { |
112 return false; | 112 return false; |
113 } | 113 } |
114 | 114 |
115 // Find out which DTLS-SRTP cipher was negotiated. | 115 // Find out which DTLS-SRTP cipher was negotiated. |
116 bool GetSrtpCryptoSuite(std::string* cipher) override { return false; } | 116 bool GetSrtpCryptoSuite(int* cipher) override { return false; } |
117 | 117 |
118 // Find out which DTLS cipher was negotiated. | 118 // Find out which DTLS cipher was negotiated. |
119 bool GetSslCipherSuite(int* cipher) override { return false; } | 119 bool GetSslCipherSuite(int* cipher) override { return false; } |
120 | 120 |
121 // Returns null because the channel is not encrypted by default. | 121 // Returns null because the channel is not encrypted by default. |
122 rtc::scoped_refptr<rtc::RTCCertificate> GetLocalCertificate() const override { | 122 rtc::scoped_refptr<rtc::RTCCertificate> GetLocalCertificate() const override { |
123 return nullptr; | 123 return nullptr; |
124 } | 124 } |
125 | 125 |
126 bool GetRemoteSSLCertificate(rtc::SSLCertificate** cert) const override { | 126 bool GetRemoteSSLCertificate(rtc::SSLCertificate** cert) const override { |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 uint32_t last_ping_sent_ms_ = 0; | 258 uint32_t last_ping_sent_ms_ = 0; |
259 bool gather_continually_ = false; | 259 bool gather_continually_ = false; |
260 int weak_ping_delay_ = WEAK_PING_DELAY; | 260 int weak_ping_delay_ = WEAK_PING_DELAY; |
261 | 261 |
262 RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel); | 262 RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel); |
263 }; | 263 }; |
264 | 264 |
265 } // namespace cricket | 265 } // namespace cricket |
266 | 266 |
267 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_ | 267 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_ |
OLD | NEW |