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 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 | 284 |
285 bool JsepTransport::GetStats(TransportStats* stats) { | 285 bool JsepTransport::GetStats(TransportStats* stats) { |
286 stats->transport_name = mid(); | 286 stats->transport_name = mid(); |
287 stats->channel_stats.clear(); | 287 stats->channel_stats.clear(); |
288 for (auto& kv : channels_) { | 288 for (auto& kv : channels_) { |
289 TransportChannelImpl* channel = kv.second; | 289 TransportChannelImpl* channel = kv.second; |
290 TransportChannelStats substats; | 290 TransportChannelStats substats; |
291 substats.component = kv.first; | 291 substats.component = kv.first; |
292 channel->GetSrtpCryptoSuite(&substats.srtp_crypto_suite); | 292 channel->GetSrtpCryptoSuite(&substats.srtp_crypto_suite); |
293 channel->GetSslCipherSuite(&substats.ssl_cipher_suite); | 293 channel->GetSslCipherSuite(&substats.ssl_cipher_suite); |
| 294 substats.dtls_state = channel->dtls_state(); |
294 if (!channel->GetStats(&substats.connection_infos)) { | 295 if (!channel->GetStats(&substats.connection_infos)) { |
295 return false; | 296 return false; |
296 } | 297 } |
297 stats->channel_stats.push_back(substats); | 298 stats->channel_stats.push_back(substats); |
298 } | 299 } |
299 return true; | 300 return true; |
300 } | 301 } |
301 | 302 |
302 bool JsepTransport::VerifyCertificateFingerprint( | 303 bool JsepTransport::VerifyCertificateFingerprint( |
303 const rtc::RTCCertificate* certificate, | 304 const rtc::RTCCertificate* certificate, |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
474 } | 475 } |
475 | 476 |
476 // If local is passive, local will act as server. | 477 // If local is passive, local will act as server. |
477 } | 478 } |
478 | 479 |
479 *ssl_role = is_remote_server ? rtc::SSL_CLIENT : rtc::SSL_SERVER; | 480 *ssl_role = is_remote_server ? rtc::SSL_CLIENT : rtc::SSL_SERVER; |
480 return true; | 481 return true; |
481 } | 482 } |
482 | 483 |
483 } // namespace cricket | 484 } // namespace cricket |
OLD | NEW |