OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #ifndef NET_QUIC_CRYPTO_CRYPTO_SERVER_CONFIG_PROTOBUF_H_ | 5 #ifndef NET_QUIC_CRYPTO_CRYPTO_SERVER_CONFIG_PROTOBUF_H_ |
6 #define NET_QUIC_CRYPTO_CRYPTO_SERVER_CONFIG_PROTOBUF_H_ | 6 #define NET_QUIC_CRYPTO_CRYPTO_SERVER_CONFIG_PROTOBUF_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
11 #include <string> | 11 #include <string> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
16 #include "base/stl_util.h" | 16 #include "base/stl_util.h" |
17 #include "base/strings/string_piece.h" | 17 #include "base/strings/string_piece.h" |
18 #include "net/base/net_export.h" | 18 #include "net/base/net_export.h" |
19 #include "net/quic/crypto/crypto_protocol.h" | 19 #include "net/quic/core/crypto/crypto_protocol.h" |
20 | 20 |
21 namespace net { | 21 namespace net { |
22 | 22 |
23 // QuicServerConfigProtobuf contains QUIC server config block and the private | 23 // QuicServerConfigProtobuf contains QUIC server config block and the private |
24 // keys needed to prove ownership. | 24 // keys needed to prove ownership. |
25 // TODO(rch): sync with server more rationally. | 25 // TODO(rch): sync with server more rationally. |
26 class NET_EXPORT_PRIVATE QuicServerConfigProtobuf { | 26 class NET_EXPORT_PRIVATE QuicServerConfigProtobuf { |
27 public: | 27 public: |
28 // PrivateKey contains a QUIC tag of a key exchange algorithm and a | 28 // PrivateKey contains a QUIC tag of a key exchange algorithm and a |
29 // serialised private key for that algorithm. The format of the serialised | 29 // serialised private key for that algorithm. The format of the serialised |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 // tokens when talking to clients that select this server config. | 106 // tokens when talking to clients that select this server config. |
107 // It can be of any length as it is fed into a KDF before use. | 107 // It can be of any length as it is fed into a KDF before use. |
108 std::string source_address_token_secret_override_; | 108 std::string source_address_token_secret_override_; |
109 | 109 |
110 DISALLOW_COPY_AND_ASSIGN(QuicServerConfigProtobuf); | 110 DISALLOW_COPY_AND_ASSIGN(QuicServerConfigProtobuf); |
111 }; | 111 }; |
112 | 112 |
113 } // namespace net | 113 } // namespace net |
114 | 114 |
115 #endif // NET_QUIC_CRYPTO_CRYPTO_SERVER_CONFIG_PROTOBUF_H_ | 115 #endif // NET_QUIC_CRYPTO_CRYPTO_SERVER_CONFIG_PROTOBUF_H_ |
OLD | NEW |