| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2009 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2009 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 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 remote_cert_ = cert; | 236 remote_cert_ = cert; |
| 237 } | 237 } |
| 238 | 238 |
| 239 bool IsDtlsActive() const override { return do_dtls_; } | 239 bool IsDtlsActive() const override { return do_dtls_; } |
| 240 | 240 |
| 241 bool SetSrtpCiphers(const std::vector<std::string>& ciphers) override { | 241 bool SetSrtpCiphers(const std::vector<std::string>& ciphers) override { |
| 242 srtp_ciphers_ = ciphers; | 242 srtp_ciphers_ = ciphers; |
| 243 return true; | 243 return true; |
| 244 } | 244 } |
| 245 | 245 |
| 246 bool GetSrtpCryptoSuite(std::string* cipher) override { | 246 bool GetSrtpCipher(std::string* cipher) override { |
| 247 if (!chosen_srtp_cipher_.empty()) { | 247 if (!chosen_srtp_cipher_.empty()) { |
| 248 *cipher = chosen_srtp_cipher_; | 248 *cipher = chosen_srtp_cipher_; |
| 249 return true; | 249 return true; |
| 250 } | 250 } |
| 251 return false; | 251 return false; |
| 252 } | 252 } |
| 253 | 253 |
| 254 bool GetSslCipherSuite(uint16_t* cipher) override { return false; } | 254 bool GetSslCipher(std::string* cipher) override { return false; } |
| 255 | 255 |
| 256 rtc::scoped_refptr<rtc::RTCCertificate> GetLocalCertificate() const { | 256 rtc::scoped_refptr<rtc::RTCCertificate> GetLocalCertificate() const { |
| 257 return local_cert_; | 257 return local_cert_; |
| 258 } | 258 } |
| 259 | 259 |
| 260 bool GetRemoteSSLCertificate(rtc::SSLCertificate** cert) const override { | 260 bool GetRemoteSSLCertificate(rtc::SSLCertificate** cert) const override { |
| 261 if (!remote_cert_) | 261 if (!remote_cert_) |
| 262 return false; | 262 return false; |
| 263 | 263 |
| 264 *cert = remote_cert_->GetReference(); | 264 *cert = remote_cert_->GetReference(); |
| (...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 531 } | 531 } |
| 532 } | 532 } |
| 533 | 533 |
| 534 private: | 534 private: |
| 535 bool fail_create_channel_; | 535 bool fail_create_channel_; |
| 536 }; | 536 }; |
| 537 | 537 |
| 538 } // namespace cricket | 538 } // namespace cricket |
| 539 | 539 |
| 540 #endif // WEBRTC_P2P_BASE_FAKETRANSPORTCONTROLLER_H_ | 540 #endif // WEBRTC_P2P_BASE_FAKETRANSPORTCONTROLLER_H_ |
| OLD | NEW |