| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |