OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/crypto/quic_crypto_client_config.h" | 5 #include "net/quic/crypto/quic_crypto_client_config.h" |
6 | 6 |
7 #include "base/metrics/histogram.h" | 7 #include "base/metrics/histogram.h" |
8 #include "base/metrics/sparse_histogram.h" | 8 #include "base/metrics/sparse_histogram.h" |
9 #include "base/stl_util.h" | 9 #include "base/stl_util.h" |
10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
(...skipping 709 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
720 } | 720 } |
721 } | 721 } |
722 | 722 |
723 if (rej.tag() == kSREJ) { | 723 if (rej.tag() == kSREJ) { |
724 QuicConnectionId connection_id; | 724 QuicConnectionId connection_id; |
725 if (rej.GetUint64(kRCID, &connection_id) != QUIC_NO_ERROR) { | 725 if (rej.GetUint64(kRCID, &connection_id) != QUIC_NO_ERROR) { |
726 *error_details = "Missing kRCID"; | 726 *error_details = "Missing kRCID"; |
727 return QUIC_CRYPTO_MESSAGE_PARAMETER_NOT_FOUND; | 727 return QUIC_CRYPTO_MESSAGE_PARAMETER_NOT_FOUND; |
728 } | 728 } |
729 cached->add_server_designated_connection_id(connection_id); | 729 cached->add_server_designated_connection_id(connection_id); |
730 return QUIC_CRYPTO_HANDSHAKE_STATELESS_REJECT; | 730 return QUIC_NO_ERROR; |
731 } | 731 } |
732 | 732 |
733 return QUIC_NO_ERROR; | 733 return QUIC_NO_ERROR; |
734 } | 734 } |
735 | 735 |
736 QuicErrorCode QuicCryptoClientConfig::ProcessServerHello( | 736 QuicErrorCode QuicCryptoClientConfig::ProcessServerHello( |
737 const CryptoHandshakeMessage& server_hello, | 737 const CryptoHandshakeMessage& server_hello, |
738 QuicConnectionId connection_id, | 738 QuicConnectionId connection_id, |
739 const QuicVersionVector& negotiated_versions, | 739 const QuicVersionVector& negotiated_versions, |
740 CachedState* cached, | 740 CachedState* cached, |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
907 } | 907 } |
908 | 908 |
909 // Update canonical version to point at the "most recent" entry. | 909 // Update canonical version to point at the "most recent" entry. |
910 canonical_server_map_[suffix_server_id] = server_id; | 910 canonical_server_map_[suffix_server_id] = server_id; |
911 | 911 |
912 server_state->InitializeFrom(*canonical_state); | 912 server_state->InitializeFrom(*canonical_state); |
913 return true; | 913 return true; |
914 } | 914 } |
915 | 915 |
916 } // namespace net | 916 } // namespace net |
OLD | NEW |