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/stl_util.h" | 7 #include "base/stl_util.h" |
8 #include "base/strings/string_util.h" | 8 #include "base/strings/string_util.h" |
9 #include "net/quic/crypto/cert_compressor.h" | 9 #include "net/quic/crypto/cert_compressor.h" |
10 #include "net/quic/crypto/chacha20_poly1305_encrypter.h" | 10 #include "net/quic/crypto/chacha20_poly1305_encrypter.h" |
(...skipping 569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
580 *error_details = "Certificate missing"; | 580 *error_details = "Certificate missing"; |
581 return QUIC_INVALID_CRYPTO_MESSAGE_PARAMETER; | 581 return QUIC_INVALID_CRYPTO_MESSAGE_PARAMETER; |
582 } | 582 } |
583 | 583 |
584 if (!has_proof && has_cert) { | 584 if (!has_proof && has_cert) { |
585 *error_details = "Proof missing"; | 585 *error_details = "Proof missing"; |
586 return QUIC_INVALID_CRYPTO_MESSAGE_PARAMETER; | 586 return QUIC_INVALID_CRYPTO_MESSAGE_PARAMETER; |
587 } | 587 } |
588 } | 588 } |
589 | 589 |
590 const QuicTag* reject_reasons; | 590 const uint32* reject_reasons; |
591 size_t num_reject_reasons; | 591 size_t num_reject_reasons; |
| 592 COMPILE_ASSERT(sizeof(QuicTag) == sizeof(uint32), header_out_of_sync); |
592 if (rej.GetTaglist(kRREJ, &reject_reasons, | 593 if (rej.GetTaglist(kRREJ, &reject_reasons, |
593 &num_reject_reasons) == QUIC_NO_ERROR) { | 594 &num_reject_reasons) == QUIC_NO_ERROR) { |
594 #if defined(DEBUG) | 595 #if defined(DEBUG) |
595 for (size_t i = 0; i < num_reject_reasons; ++i) { | 596 for (size_t i = 0; i < num_reject_reasons; ++i) { |
596 DVLOG(1) << "Reasons for rejection: " << reject_reasons[i]; | 597 DVLOG(1) << "Reasons for rejection: " << reject_reasons[i]; |
597 } | 598 } |
598 #endif | 599 #endif |
599 } | 600 } |
600 | 601 |
601 return QUIC_NO_ERROR; | 602 return QUIC_NO_ERROR; |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
755 return; | 756 return; |
756 } | 757 } |
757 | 758 |
758 // Update canonical version to point at the "most recent" entry. | 759 // Update canonical version to point at the "most recent" entry. |
759 canonical_server_map_[suffix_server_id] = server_id; | 760 canonical_server_map_[suffix_server_id] = server_id; |
760 | 761 |
761 server_state->InitializeFrom(*canonical_state); | 762 server_state->InitializeFrom(*canonical_state); |
762 } | 763 } |
763 | 764 |
764 } // namespace net | 765 } // namespace net |
OLD | NEW |