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