OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "net/quic/quic_chromium_client_session.h" | 5 #include "net/quic/quic_chromium_client_session.h" |
6 | 6 |
7 #include "base/callback_helpers.h" | 7 #include "base/callback_helpers.h" |
8 #include "base/location.h" | 8 #include "base/location.h" |
9 #include "base/metrics/histogram_macros.h" | 9 #include "base/metrics/histogram_macros.h" |
10 #include "base/metrics/sparse_histogram.h" | 10 #include "base/metrics/sparse_histogram.h" |
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
463 return false; | 463 return false; |
464 } | 464 } |
465 | 465 |
466 ssl_info->cert_status = cert_verify_result_->cert_status; | 466 ssl_info->cert_status = cert_verify_result_->cert_status; |
467 ssl_info->cert = cert_verify_result_->verified_cert; | 467 ssl_info->cert = cert_verify_result_->verified_cert; |
468 | 468 |
469 // TODO(wtc): Define QUIC "cipher suites". | 469 // TODO(wtc): Define QUIC "cipher suites". |
470 // Report the TLS cipher suite that most closely resembles the crypto | 470 // Report the TLS cipher suite that most closely resembles the crypto |
471 // parameters of the QUIC connection. | 471 // parameters of the QUIC connection. |
472 QuicTag aead = crypto_stream_->crypto_negotiated_params().aead; | 472 QuicTag aead = crypto_stream_->crypto_negotiated_params().aead; |
473 uint16 cipher_suite; | 473 uint16_t cipher_suite; |
474 int security_bits; | 474 int security_bits; |
475 switch (aead) { | 475 switch (aead) { |
476 case kAESG: | 476 case kAESG: |
477 cipher_suite = 0xc02f; // TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 | 477 cipher_suite = 0xc02f; // TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 |
478 security_bits = 128; | 478 security_bits = 128; |
479 break; | 479 break; |
480 case kCC12: | 480 case kCC12: |
481 cipher_suite = 0xcc13; // TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 | 481 cipher_suite = 0xcc13; // TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 |
482 security_bits = 256; | 482 security_bits = 256; |
483 break; | 483 break; |
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
975 return; | 975 return; |
976 | 976 |
977 // TODO(rch): re-enable this code once beta is cut. | 977 // TODO(rch): re-enable this code once beta is cut. |
978 // if (stream_factory_) | 978 // if (stream_factory_) |
979 // stream_factory_->OnSessionConnectTimeout(this); | 979 // stream_factory_->OnSessionConnectTimeout(this); |
980 // CloseAllStreams(ERR_QUIC_HANDSHAKE_FAILED); | 980 // CloseAllStreams(ERR_QUIC_HANDSHAKE_FAILED); |
981 // DCHECK_EQ(0u, GetNumOpenOutgoingStreams()); | 981 // DCHECK_EQ(0u, GetNumOpenOutgoingStreams()); |
982 } | 982 } |
983 | 983 |
984 } // namespace net | 984 } // namespace net |
OLD | NEW |