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 #include "net/quic/crypto/common_cert_set.h" | 5 #include "net/quic/core/crypto/common_cert_set.h" |
6 | 6 |
7 #include <cstddef> | 7 #include <cstddef> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "base/memory/singleton.h" | 11 #include "base/memory/singleton.h" |
12 #include "net/quic/quic_utils.h" | 12 #include "net/quic/core/quic_utils.h" |
13 | 13 |
14 using base::StringPiece; | 14 using base::StringPiece; |
15 | 15 |
16 namespace net { | 16 namespace net { |
17 | 17 |
18 namespace common_cert_set_1 { | 18 namespace common_cert_set_1 { |
19 #include "net/quic/crypto/common_cert_set_1.c" | 19 #include "net/quic/core/crypto/common_cert_set_1.c" |
20 } | 20 } |
21 | 21 |
22 namespace common_cert_set_2 { | 22 namespace common_cert_set_2 { |
23 #include "net/quic/crypto/common_cert_set_2.c" | 23 #include "net/quic/core/crypto/common_cert_set_2.c" |
24 } | 24 } |
25 | 25 |
26 namespace { | 26 namespace { |
27 | 27 |
28 struct CertSet { | 28 struct CertSet { |
29 // num_certs contains the number of certificates in this set. | 29 // num_certs contains the number of certificates in this set. |
30 size_t num_certs; | 30 size_t num_certs; |
31 // certs is an array of |num_certs| pointers to the DER encoded certificates. | 31 // certs is an array of |num_certs| pointers to the DER encoded certificates. |
32 const unsigned char* const* certs; | 32 const unsigned char* const* certs; |
33 // lens is an array of |num_certs| integers describing the length, in bytes, | 33 // lens is an array of |num_certs| integers describing the length, in bytes, |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 } // anonymous namespace | 159 } // anonymous namespace |
160 | 160 |
161 CommonCertSets::~CommonCertSets() {} | 161 CommonCertSets::~CommonCertSets() {} |
162 | 162 |
163 // static | 163 // static |
164 const CommonCertSets* CommonCertSets::GetInstanceQUIC() { | 164 const CommonCertSets* CommonCertSets::GetInstanceQUIC() { |
165 return CommonCertSetsQUIC::GetInstance(); | 165 return CommonCertSetsQUIC::GetInstance(); |
166 } | 166 } |
167 | 167 |
168 } // namespace net | 168 } // namespace net |
OLD | NEW |