| 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/test_tools/crypto_test_utils.h" | 5 #include "net/quic/test_tools/crypto_test_utils.h" |
| 6 | 6 |
| 7 #include <openssl/bn.h> | 7 #include <openssl/bn.h> |
| 8 #include <openssl/ec.h> | 8 #include <openssl/ec.h> |
| 9 #include <openssl/ecdsa.h> | 9 #include <openssl/ecdsa.h> |
| 10 #include <openssl/evp.h> | 10 #include <openssl/evp.h> |
| 11 #include <openssl/obj_mac.h> | 11 #include <openssl/obj_mac.h> |
| 12 #include <openssl/sha.h> | 12 #include <openssl/sha.h> |
| 13 | 13 |
| 14 #include <memory> | 14 #include <memory> |
| 15 | 15 |
| 16 #include "base/strings/string_util.h" | 16 #include "base/strings/string_util.h" |
| 17 #include "crypto/openssl_util.h" | 17 #include "crypto/openssl_util.h" |
| 18 #include "crypto/scoped_openssl_types.h" | 18 #include "crypto/scoped_openssl_types.h" |
| 19 #include "crypto/secure_hash.h" | 19 #include "crypto/secure_hash.h" |
| 20 #include "net/quic/crypto/channel_id.h" | 20 #include "net/quic/core/crypto/channel_id.h" |
| 21 #include "net/quic/crypto/common_cert_set.h" | 21 #include "net/quic/core/crypto/common_cert_set.h" |
| 22 #include "net/quic/crypto/crypto_handshake.h" | 22 #include "net/quic/core/crypto/crypto_handshake.h" |
| 23 #include "net/quic/crypto/quic_crypto_server_config.h" | 23 #include "net/quic/core/crypto/quic_crypto_server_config.h" |
| 24 #include "net/quic/crypto/quic_decrypter.h" | 24 #include "net/quic/core/crypto/quic_decrypter.h" |
| 25 #include "net/quic/crypto/quic_encrypter.h" | 25 #include "net/quic/core/crypto/quic_encrypter.h" |
| 26 #include "net/quic/crypto/quic_random.h" | 26 #include "net/quic/core/crypto/quic_random.h" |
| 27 #include "net/quic/quic_clock.h" | 27 #include "net/quic/core/quic_clock.h" |
| 28 #include "net/quic/quic_crypto_client_stream.h" | 28 #include "net/quic/core/quic_crypto_client_stream.h" |
| 29 #include "net/quic/quic_crypto_server_stream.h" | 29 #include "net/quic/core/quic_crypto_server_stream.h" |
| 30 #include "net/quic/quic_crypto_stream.h" | 30 #include "net/quic/core/quic_crypto_stream.h" |
| 31 #include "net/quic/quic_server_id.h" | 31 #include "net/quic/core/quic_server_id.h" |
| 32 #include "net/quic/quic_utils.h" | 32 #include "net/quic/core/quic_utils.h" |
| 33 #include "net/quic/test_tools/quic_connection_peer.h" | 33 #include "net/quic/test_tools/quic_connection_peer.h" |
| 34 #include "net/quic/test_tools/quic_framer_peer.h" | 34 #include "net/quic/test_tools/quic_framer_peer.h" |
| 35 #include "net/quic/test_tools/quic_test_utils.h" | 35 #include "net/quic/test_tools/quic_test_utils.h" |
| 36 #include "net/quic/test_tools/simple_quic_framer.h" | 36 #include "net/quic/test_tools/simple_quic_framer.h" |
| 37 | 37 |
| 38 using base::StringPiece; | 38 using base::StringPiece; |
| 39 using std::make_pair; | 39 using std::make_pair; |
| 40 using std::pair; | 40 using std::pair; |
| 41 using std::string; | 41 using std::string; |
| 42 using std::vector; | 42 using std::vector; |
| (...skipping 865 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 908 CryptoHandshakeMessage* out) { | 908 CryptoHandshakeMessage* out) { |
| 909 // Pass a inchoate CHLO. | 909 // Pass a inchoate CHLO. |
| 910 crypto_config->ValidateClientHello( | 910 crypto_config->ValidateClientHello( |
| 911 inchoate_chlo, client_addr.address(), server_ip, version, clock, proof, | 911 inchoate_chlo, client_addr.address(), server_ip, version, clock, proof, |
| 912 new FullChloGenerator(crypto_config, server_ip, client_addr, clock, proof, | 912 new FullChloGenerator(crypto_config, server_ip, client_addr, clock, proof, |
| 913 compressed_certs_cache, out)); | 913 compressed_certs_cache, out)); |
| 914 } | 914 } |
| 915 | 915 |
| 916 } // namespace test | 916 } // namespace test |
| 917 } // namespace net | 917 } // namespace net |
| OLD | NEW |