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

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

Issue 1548733002: Change DTLS default from 1.0 to 1.2 for webrtc. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: disable tests which fail under msan build. See webrtc bug 5381 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/sslstreamadapterhelper.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 2012 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2012 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 17 matching lines...) Expand all
28 // Everything in this class should be called on the worker thread. 28 // Everything in this class should be called on the worker thread.
29 template<class Base> 29 template<class Base>
30 class DtlsTransport : public Base { 30 class DtlsTransport : public Base {
31 public: 31 public:
32 DtlsTransport(const std::string& name, 32 DtlsTransport(const std::string& name,
33 PortAllocator* allocator, 33 PortAllocator* allocator,
34 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate) 34 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate)
35 : Base(name, allocator), 35 : Base(name, allocator),
36 certificate_(certificate), 36 certificate_(certificate),
37 secure_role_(rtc::SSL_CLIENT), 37 secure_role_(rtc::SSL_CLIENT),
38 ssl_max_version_(rtc::SSL_PROTOCOL_DTLS_10) {} 38 ssl_max_version_(rtc::SSL_PROTOCOL_DTLS_12) {}
39 39
40 ~DtlsTransport() { 40 ~DtlsTransport() {
41 Base::DestroyAllChannels(); 41 Base::DestroyAllChannels();
42 } 42 }
43 43
44 void SetLocalCertificate( 44 void SetLocalCertificate(
45 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate) override { 45 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate) override {
46 certificate_ = certificate; 46 certificate_ = certificate;
47 } 47 }
48 bool GetLocalCertificate( 48 bool GetLocalCertificate(
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 241
242 rtc::scoped_refptr<rtc::RTCCertificate> certificate_; 242 rtc::scoped_refptr<rtc::RTCCertificate> certificate_;
243 rtc::SSLRole secure_role_; 243 rtc::SSLRole secure_role_;
244 rtc::SSLProtocolVersion ssl_max_version_; 244 rtc::SSLProtocolVersion ssl_max_version_;
245 rtc::scoped_ptr<rtc::SSLFingerprint> remote_fingerprint_; 245 rtc::scoped_ptr<rtc::SSLFingerprint> remote_fingerprint_;
246 }; 246 };
247 247
248 } // namespace cricket 248 } // namespace cricket
249 249
250 #endif // WEBRTC_P2P_BASE_DTLSTRANSPORT_H_ 250 #endif // WEBRTC_P2P_BASE_DTLSTRANSPORT_H_
OLDNEW
« no previous file with comments | « webrtc/base/sslstreamadapterhelper.cc ('k') | webrtc/p2p/base/dtlstransportchannel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698