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

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

Issue 1566023002: Fix bug 574524: DtlsTransportChannel crashes after SSL closes remotely (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: improve comments. Created 4 years, 11 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/opensslstreamadapter.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 16 matching lines...) Expand all
27 // the bottom and a StreamInterface on the top. 27 // the bottom and a StreamInterface on the top.
28 class StreamInterfaceChannel : public rtc::StreamInterface { 28 class StreamInterfaceChannel : public rtc::StreamInterface {
29 public: 29 public:
30 explicit StreamInterfaceChannel(TransportChannel* channel); 30 explicit StreamInterfaceChannel(TransportChannel* channel);
31 31
32 // Push in a packet; this gets pulled out from Read(). 32 // Push in a packet; this gets pulled out from Read().
33 bool OnPacketReceived(const char* data, size_t size); 33 bool OnPacketReceived(const char* data, size_t size);
34 34
35 // Implementations of StreamInterface 35 // Implementations of StreamInterface
36 rtc::StreamState GetState() const override { return state_; } 36 rtc::StreamState GetState() const override { return state_; }
37 void Close() override { state_ = rtc::SS_CLOSED; } 37 void Close() override;
38 rtc::StreamResult Read(void* buffer, 38 rtc::StreamResult Read(void* buffer,
39 size_t buffer_len, 39 size_t buffer_len,
40 size_t* read, 40 size_t* read,
41 int* error) override; 41 int* error) override;
42 rtc::StreamResult Write(const void* data, 42 rtc::StreamResult Write(const void* data,
43 size_t data_len, 43 size_t data_len,
44 size_t* written, 44 size_t* written,
45 int* error) override; 45 int* error) override;
46 46
47 private: 47 private:
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 rtc::SSLProtocolVersion ssl_max_version_; 231 rtc::SSLProtocolVersion ssl_max_version_;
232 rtc::Buffer remote_fingerprint_value_; 232 rtc::Buffer remote_fingerprint_value_;
233 std::string remote_fingerprint_algorithm_; 233 std::string remote_fingerprint_algorithm_;
234 234
235 RTC_DISALLOW_COPY_AND_ASSIGN(DtlsTransportChannelWrapper); 235 RTC_DISALLOW_COPY_AND_ASSIGN(DtlsTransportChannelWrapper);
236 }; 236 };
237 237
238 } // namespace cricket 238 } // namespace cricket
239 239
240 #endif // WEBRTC_P2P_BASE_DTLSTRANSPORTCHANNEL_H_ 240 #endif // WEBRTC_P2P_BASE_DTLSTRANSPORTCHANNEL_H_
OLDNEW
« no previous file with comments | « webrtc/base/opensslstreamadapter.cc ('k') | webrtc/p2p/base/dtlstransportchannel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698