| 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 virtual bool GetSrtpCipher(std::string* cipher) { | 115 virtual bool GetSrtpCipher(std::string* cipher) { |
| 116 return false; | 116 return false; |
| 117 } | 117 } |
| 118 | 118 |
| 119 // Find out which DTLS cipher was negotiated. | 119 // Find out which DTLS cipher was negotiated. |
| 120 virtual bool GetSslCipher(std::string* cipher) { | 120 virtual bool GetSslCipher(std::string* cipher) { |
| 121 return false; | 121 return false; |
| 122 } | 122 } |
| 123 | 123 |
| 124 // Returns false because the channel is not encrypted by default. | 124 // Returns false because the channel is not encrypted by default. |
| 125 virtual bool GetLocalIdentity(rtc::SSLIdentity** identity) const { | 125 bool GetLocalCertificate( |
| 126 rtc::scoped_refptr<webrtc::DtlsCertificate>* certificate) const override { |
| 126 return false; | 127 return false; |
| 127 } | 128 } |
| 128 | 129 |
| 129 virtual bool GetRemoteCertificate(rtc::SSLCertificate** cert) const { | 130 virtual bool GetRemoteCertificate(rtc::SSLCertificate** cert) const { |
| 130 return false; | 131 return false; |
| 131 } | 132 } |
| 132 | 133 |
| 133 // Allows key material to be extracted for external encryption. | 134 // Allows key material to be extracted for external encryption. |
| 134 virtual bool ExportKeyingMaterial( | 135 virtual bool ExportKeyingMaterial( |
| 135 const std::string& label, | 136 const std::string& label, |
| 136 const uint8* context, | 137 const uint8* context, |
| 137 size_t context_len, | 138 size_t context_len, |
| 138 bool use_context, | 139 bool use_context, |
| 139 uint8* result, | 140 uint8* result, |
| 140 size_t result_len) { | 141 size_t result_len) { |
| 141 return false; | 142 return false; |
| 142 } | 143 } |
| 143 | 144 |
| 144 virtual bool SetLocalIdentity(rtc::SSLIdentity* identity) { | 145 virtual bool SetLocalCertificate( |
| 146 const rtc::scoped_refptr<webrtc::DtlsCertificate>& certificate) { |
| 145 return false; | 147 return false; |
| 146 } | 148 } |
| 147 | 149 |
| 148 // Set DTLS Remote fingerprint. Must be after local identity set. | 150 // Set DTLS Remote fingerprint. Must be after local identity set. |
| 149 virtual bool SetRemoteFingerprint( | 151 virtual bool SetRemoteFingerprint( |
| 150 const std::string& digest_alg, | 152 const std::string& digest_alg, |
| 151 const uint8* digest, | 153 const uint8* digest, |
| 152 size_t digest_len) { | 154 size_t digest_len) { |
| 153 return false; | 155 return false; |
| 154 } | 156 } |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 | 253 |
| 252 int check_receiving_delay_; | 254 int check_receiving_delay_; |
| 253 int receiving_timeout_; | 255 int receiving_timeout_; |
| 254 | 256 |
| 255 DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel); | 257 DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel); |
| 256 }; | 258 }; |
| 257 | 259 |
| 258 } // namespace cricket | 260 } // namespace cricket |
| 259 | 261 |
| 260 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_ | 262 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_ |
| OLD | NEW |