| 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_server_config.h" | 5 #include "net/quic/crypto/quic_crypto_server_config.h" |
| 6 | 6 |
| 7 #include <stdarg.h> | 7 #include <stdarg.h> |
| 8 | 8 |
| 9 #include "base/stl_util.h" | 9 #include "base/stl_util.h" |
| 10 #include "net/quic/crypto/aes_128_gcm_12_encrypter.h" | 10 #include "net/quic/crypto/aes_128_gcm_12_encrypter.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 return config->source_address_token_boxer == | 49 return config->source_address_token_boxer == |
| 50 &(server_config_->default_source_address_token_boxer_); | 50 &(server_config_->default_source_address_token_boxer_); |
| 51 } | 51 } |
| 52 | 52 |
| 53 string NewSourceAddressToken( | 53 string NewSourceAddressToken( |
| 54 string config_id, | 54 string config_id, |
| 55 IPEndPoint ip, | 55 IPEndPoint ip, |
| 56 QuicRandom* rand, | 56 QuicRandom* rand, |
| 57 QuicWallTime now) { | 57 QuicWallTime now) { |
| 58 return server_config_->NewSourceAddressToken( | 58 return server_config_->NewSourceAddressToken( |
| 59 *GetConfig(config_id), ip, rand, now); | 59 *GetConfig(config_id), ip, rand, now, NULL); |
| 60 } | 60 } |
| 61 | 61 |
| 62 HandshakeFailureReason ValidateSourceAddressToken(string config_id, | 62 HandshakeFailureReason ValidateSourceAddressToken(string config_id, |
| 63 StringPiece srct, | 63 StringPiece srct, |
| 64 IPEndPoint ip, | 64 IPEndPoint ip, |
| 65 QuicWallTime now) { | 65 QuicWallTime now) { |
| 66 return server_config_->ValidateSourceAddressToken( | 66 return server_config_->ValidateSourceAddressToken( |
| 67 *GetConfig(config_id), srct, ip, now); | 67 *GetConfig(config_id), srct, ip, now); |
| 68 } | 68 } |
| 69 | 69 |
| (...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 661 NULL); | 661 NULL); |
| 662 test_peer_.CheckConfigs( | 662 test_peer_.CheckConfigs( |
| 663 "a", false, | 663 "a", false, |
| 664 "b", true, | 664 "b", true, |
| 665 "c", false, | 665 "c", false, |
| 666 NULL); | 666 NULL); |
| 667 } | 667 } |
| 668 | 668 |
| 669 } // namespace test | 669 } // namespace test |
| 670 } // namespace net | 670 } // namespace net |
| OLD | NEW |