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