Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(235)

Side by Side Diff: webrtc/p2p/base/dtlstransportchannel.h

Issue 2163683003: Relanding: Allow the DTLS fingerprint verification to occur after the handshake. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fixing comment grammar. Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/base/sslstreamadapter_unittest.cc ('k') | webrtc/p2p/base/dtlstransportchannel.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 channel_->RemoveRemoteCandidate(candidate); 186 channel_->RemoveRemoteCandidate(candidate);
187 } 187 }
188 188
189 void SetIceConfig(const IceConfig& config) override { 189 void SetIceConfig(const IceConfig& config) override {
190 channel_->SetIceConfig(config); 190 channel_->SetIceConfig(config);
191 } 191 }
192 192
193 // Needed by DtlsTransport. 193 // Needed by DtlsTransport.
194 TransportChannelImpl* channel() { return channel_; } 194 TransportChannelImpl* channel() { return channel_; }
195 195
196 // For informational purposes. Tells if the DTLS handshake has finished.
197 // This may be true even if writable() is false, if the remote fingerprint
198 // has not yet been verified.
199 bool IsDtlsConnected();
200
196 private: 201 private:
197 void OnReadableState(TransportChannel* channel);
198 void OnWritableState(TransportChannel* channel); 202 void OnWritableState(TransportChannel* channel);
199 void OnReadPacket(TransportChannel* channel, const char* data, size_t size, 203 void OnReadPacket(TransportChannel* channel, const char* data, size_t size,
200 const rtc::PacketTime& packet_time, int flags); 204 const rtc::PacketTime& packet_time, int flags);
201 void OnSentPacket(TransportChannel* channel, 205 void OnSentPacket(TransportChannel* channel,
202 const rtc::SentPacket& sent_packet); 206 const rtc::SentPacket& sent_packet);
203 void OnReadyToSend(TransportChannel* channel); 207 void OnReadyToSend(TransportChannel* channel);
204 void OnReceivingState(TransportChannel* channel); 208 void OnReceivingState(TransportChannel* channel);
205 void OnDtlsEvent(rtc::StreamInterface* stream_, int sig, int err); 209 void OnDtlsEvent(rtc::StreamInterface* stream_, int sig, int err);
206 bool SetupDtls(); 210 bool SetupDtls();
207 void MaybeStartDtls(); 211 void MaybeStartDtls();
(...skipping 30 matching lines...) Expand all
238 // transport channel became writable, or before a remote fingerprint was 242 // transport channel became writable, or before a remote fingerprint was
239 // received. 243 // received.
240 rtc::Buffer cached_client_hello_; 244 rtc::Buffer cached_client_hello_;
241 245
242 RTC_DISALLOW_COPY_AND_ASSIGN(DtlsTransportChannelWrapper); 246 RTC_DISALLOW_COPY_AND_ASSIGN(DtlsTransportChannelWrapper);
243 }; 247 };
244 248
245 } // namespace cricket 249 } // namespace cricket
246 250
247 #endif // WEBRTC_P2P_BASE_DTLSTRANSPORTCHANNEL_H_ 251 #endif // WEBRTC_P2P_BASE_DTLSTRANSPORTCHANNEL_H_
OLDNEW
« no previous file with comments | « webrtc/base/sslstreamadapter_unittest.cc ('k') | webrtc/p2p/base/dtlstransportchannel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698