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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 bool GetSrtpCryptoSuite(int* cipher) override { return false; } | 136 bool GetSrtpCryptoSuite(int* cipher) override { return false; } |
137 | 137 |
138 // Find out which DTLS cipher was negotiated. | 138 // Find out which DTLS cipher was negotiated. |
139 bool GetSslCipherSuite(int* cipher) override { return false; } | 139 bool GetSslCipherSuite(int* cipher) override { return false; } |
140 | 140 |
141 // Returns null because the channel is not encrypted by default. | 141 // Returns null because the channel is not encrypted by default. |
142 rtc::scoped_refptr<rtc::RTCCertificate> GetLocalCertificate() const override { | 142 rtc::scoped_refptr<rtc::RTCCertificate> GetLocalCertificate() const override { |
143 return nullptr; | 143 return nullptr; |
144 } | 144 } |
145 | 145 |
146 bool GetRemoteSSLCertificate(rtc::SSLCertificate** cert) const override { | 146 rtc::scoped_ptr<rtc::SSLCertificate> GetRemoteSSLCertificate() |
147 return false; | 147 const override { |
| 148 return nullptr; |
148 } | 149 } |
149 | 150 |
150 // Allows key material to be extracted for external encryption. | 151 // Allows key material to be extracted for external encryption. |
151 bool ExportKeyingMaterial(const std::string& label, | 152 bool ExportKeyingMaterial(const std::string& label, |
152 const uint8_t* context, | 153 const uint8_t* context, |
153 size_t context_len, | 154 size_t context_len, |
154 bool use_context, | 155 bool use_context, |
155 uint8_t* result, | 156 uint8_t* result, |
156 size_t result_len) override { | 157 size_t result_len) override { |
157 return false; | 158 return false; |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
325 int weak_ping_interval_ = WEAK_PING_INTERVAL; | 326 int weak_ping_interval_ = WEAK_PING_INTERVAL; |
326 TransportChannelState state_ = TransportChannelState::STATE_INIT; | 327 TransportChannelState state_ = TransportChannelState::STATE_INIT; |
327 IceConfig config_; | 328 IceConfig config_; |
328 | 329 |
329 RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel); | 330 RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel); |
330 }; | 331 }; |
331 | 332 |
332 } // namespace cricket | 333 } // namespace cricket |
333 | 334 |
334 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_ | 335 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_ |
OLD | NEW |