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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 } | 239 } |
240 | 240 |
241 bool GetSrtpCipher(std::string* cipher) override { | 241 bool GetSrtpCipher(std::string* cipher) override { |
242 if (!chosen_srtp_cipher_.empty()) { | 242 if (!chosen_srtp_cipher_.empty()) { |
243 *cipher = chosen_srtp_cipher_; | 243 *cipher = chosen_srtp_cipher_; |
244 return true; | 244 return true; |
245 } | 245 } |
246 return false; | 246 return false; |
247 } | 247 } |
248 | 248 |
249 bool GetSslCipher(std::string* cipher) override { | 249 bool GetSslCipher(rtc::SslCipher* cipher) override { return false; } |
250 return false; | |
251 } | |
252 | 250 |
253 rtc::scoped_refptr<rtc::RTCCertificate> | 251 rtc::scoped_refptr<rtc::RTCCertificate> |
254 GetLocalCertificate() const override { | 252 GetLocalCertificate() const override { |
255 return certificate_; | 253 return certificate_; |
256 } | 254 } |
257 | 255 |
258 bool GetRemoteSSLCertificate(rtc::SSLCertificate** cert) const override { | 256 bool GetRemoteSSLCertificate(rtc::SSLCertificate** cert) const override { |
259 if (!remote_cert_) | 257 if (!remote_cert_) |
260 return false; | 258 return false; |
261 | 259 |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
497 } | 495 } |
498 } | 496 } |
499 | 497 |
500 private: | 498 private: |
501 bool fail_create_channel_; | 499 bool fail_create_channel_; |
502 }; | 500 }; |
503 | 501 |
504 } // namespace cricket | 502 } // namespace cricket |
505 | 503 |
506 #endif // WEBRTC_P2P_BASE_FAKESESSION_H_ | 504 #endif // WEBRTC_P2P_BASE_FAKESESSION_H_ |
OLD | NEW |