OLD | NEW |
---|---|
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 23 matching lines...) Expand all Loading... | |
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_12) {} | 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 bool SetLocalCertificate( |
pthatcher1
2016/03/30 20:34:50
I think it would help to move all of the code chan
mikescarlett
2016/04/05 19:58:52
I will.
| |
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 return true; | |
47 } | 48 } |
48 bool GetLocalCertificate( | 49 bool GetLocalCertificate( |
49 rtc::scoped_refptr<rtc::RTCCertificate>* certificate) override { | 50 rtc::scoped_refptr<rtc::RTCCertificate>* certificate) override { |
50 if (!certificate_) | 51 if (!certificate_) |
51 return false; | 52 return false; |
52 | 53 |
53 *certificate = certificate_; | 54 *certificate = certificate_; |
54 return true; | 55 return true; |
55 } | 56 } |
56 | 57 |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
241 | 242 |
242 rtc::scoped_refptr<rtc::RTCCertificate> certificate_; | 243 rtc::scoped_refptr<rtc::RTCCertificate> certificate_; |
243 rtc::SSLRole secure_role_; | 244 rtc::SSLRole secure_role_; |
244 rtc::SSLProtocolVersion ssl_max_version_; | 245 rtc::SSLProtocolVersion ssl_max_version_; |
245 rtc::scoped_ptr<rtc::SSLFingerprint> remote_fingerprint_; | 246 rtc::scoped_ptr<rtc::SSLFingerprint> remote_fingerprint_; |
246 }; | 247 }; |
247 | 248 |
248 } // namespace cricket | 249 } // namespace cricket |
249 | 250 |
250 #endif // WEBRTC_P2P_BASE_DTLSTRANSPORT_H_ | 251 #endif // WEBRTC_P2P_BASE_DTLSTRANSPORT_H_ |
OLD | NEW |