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

Side by Side Diff: webrtc/base/sslstreamadapterhelper.cc

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/opensslstreamadapter.cc ('k') | webrtc/p2p/base/dtlstransport.h » ('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 2004 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2004 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 11 matching lines...) Expand all
22 #include "webrtc/base/stream.h" 22 #include "webrtc/base/stream.h"
23 23
24 namespace rtc { 24 namespace rtc {
25 25
26 SSLStreamAdapterHelper::SSLStreamAdapterHelper(StreamInterface* stream) 26 SSLStreamAdapterHelper::SSLStreamAdapterHelper(StreamInterface* stream)
27 : SSLStreamAdapter(stream), 27 : SSLStreamAdapter(stream),
28 state_(SSL_NONE), 28 state_(SSL_NONE),
29 role_(SSL_CLIENT), 29 role_(SSL_CLIENT),
30 ssl_error_code_(0), // Not meaningful yet 30 ssl_error_code_(0), // Not meaningful yet
31 ssl_mode_(SSL_MODE_TLS), 31 ssl_mode_(SSL_MODE_TLS),
32 ssl_max_version_(SSL_PROTOCOL_TLS_11) { 32 ssl_max_version_(SSL_PROTOCOL_TLS_12) {}
33 }
34 33
35 SSLStreamAdapterHelper::~SSLStreamAdapterHelper() = default; 34 SSLStreamAdapterHelper::~SSLStreamAdapterHelper() = default;
36 35
37 void SSLStreamAdapterHelper::SetIdentity(SSLIdentity* identity) { 36 void SSLStreamAdapterHelper::SetIdentity(SSLIdentity* identity) {
38 ASSERT(identity_.get() == NULL); 37 ASSERT(identity_.get() == NULL);
39 identity_.reset(identity); 38 identity_.reset(identity);
40 } 39 }
41 40
42 void SSLStreamAdapterHelper::SetServerRole(SSLRole role) { 41 void SSLStreamAdapterHelper::SetServerRole(SSLRole role) {
43 role_ = role; 42 role_ = role;
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 if (err) { 135 if (err) {
137 Error("BeginSSL", err, false); 136 Error("BeginSSL", err, false);
138 return err; 137 return err;
139 } 138 }
140 139
141 return 0; 140 return 0;
142 } 141 }
143 142
144 } // namespace rtc 143 } // namespace rtc
145 144
OLDNEW
« no previous file with comments | « webrtc/base/opensslstreamadapter.cc ('k') | webrtc/p2p/base/dtlstransport.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698