OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2011 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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 void OnCandidatesRemoved(TransportChannelImpl* channel, | 214 void OnCandidatesRemoved(TransportChannelImpl* channel, |
215 const Candidates& candidates); | 215 const Candidates& candidates); |
216 void OnRoleConflict(TransportChannelImpl* channel); | 216 void OnRoleConflict(TransportChannelImpl* channel); |
217 void OnRouteChange(TransportChannel* channel, const Candidate& candidate); | 217 void OnRouteChange(TransportChannel* channel, const Candidate& candidate); |
218 void OnSelectedCandidatePairChanged( | 218 void OnSelectedCandidatePairChanged( |
219 TransportChannel* channel, | 219 TransportChannel* channel, |
220 CandidatePairInterface* selected_candidate_pair, | 220 CandidatePairInterface* selected_candidate_pair, |
221 int last_sent_packet_id, | 221 int last_sent_packet_id, |
222 bool ready_to_send); | 222 bool ready_to_send); |
223 void OnChannelStateChanged(TransportChannelImpl* channel); | 223 void OnChannelStateChanged(TransportChannelImpl* channel); |
| 224 void OnDtlsHandshakeError(rtc::SSLHandshakeError error); |
224 | 225 |
225 rtc::Thread* worker_thread_; // Everything should occur on this thread. | 226 rtc::Thread* worker_thread_; // Everything should occur on this thread. |
226 // Underlying channel, not owned by this class. | 227 // Underlying channel, not owned by this class. |
227 TransportChannelImpl* const channel_; | 228 TransportChannelImpl* const channel_; |
228 std::unique_ptr<rtc::SSLStreamAdapter> dtls_; // The DTLS stream | 229 std::unique_ptr<rtc::SSLStreamAdapter> dtls_; // The DTLS stream |
229 StreamInterfaceChannel* downward_; // Wrapper for channel_, owned by dtls_. | 230 StreamInterfaceChannel* downward_; // Wrapper for channel_, owned by dtls_. |
230 std::vector<int> srtp_ciphers_; // SRTP ciphers to use with DTLS. | 231 std::vector<int> srtp_ciphers_; // SRTP ciphers to use with DTLS. |
231 bool dtls_active_ = false; | 232 bool dtls_active_ = false; |
232 rtc::scoped_refptr<rtc::RTCCertificate> local_certificate_; | 233 rtc::scoped_refptr<rtc::RTCCertificate> local_certificate_; |
233 rtc::SSLRole ssl_role_; | 234 rtc::SSLRole ssl_role_; |
234 rtc::SSLProtocolVersion ssl_max_version_; | 235 rtc::SSLProtocolVersion ssl_max_version_; |
235 rtc::Buffer remote_fingerprint_value_; | 236 rtc::Buffer remote_fingerprint_value_; |
236 std::string remote_fingerprint_algorithm_; | 237 std::string remote_fingerprint_algorithm_; |
237 | 238 |
238 // Cached DTLS ClientHello packet that was received before we started the | 239 // Cached DTLS ClientHello packet that was received before we started the |
239 // DTLS handshake. This could happen if the hello was received before the | 240 // DTLS handshake. This could happen if the hello was received before the |
240 // transport channel became writable, or before a remote fingerprint was | 241 // transport channel became writable, or before a remote fingerprint was |
241 // received. | 242 // received. |
242 rtc::Buffer cached_client_hello_; | 243 rtc::Buffer cached_client_hello_; |
243 | 244 |
244 RTC_DISALLOW_COPY_AND_ASSIGN(DtlsTransportChannelWrapper); | 245 RTC_DISALLOW_COPY_AND_ASSIGN(DtlsTransportChannelWrapper); |
245 }; | 246 }; |
246 | 247 |
247 } // namespace cricket | 248 } // namespace cricket |
248 | 249 |
249 #endif // WEBRTC_P2P_BASE_DTLSTRANSPORTCHANNEL_H_ | 250 #endif // WEBRTC_P2P_BASE_DTLSTRANSPORTCHANNEL_H_ |
OLD | NEW |