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 #ifndef NET_CERT_CRL_SET_H_ | 5 #ifndef NET_CERT_CRL_SET_H_ |
6 #define NET_CERT_CRL_SET_H_ | 6 #define NET_CERT_CRL_SET_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
Philippe
2014/05/26 18:09:42
JFYI, I will remove this in the next patch set.
Philippe
2014/05/26 18:53:39
Done.
| |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/containers/hash_tables.h" | |
13 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
14 #include "base/strings/string_piece.h" | 15 #include "base/strings/string_piece.h" |
15 #include "net/base/net_export.h" | 16 #include "net/base/net_export.h" |
16 #include "net/cert/x509_cert_types.h" | 17 #include "net/cert/x509_cert_types.h" |
17 | 18 |
18 namespace base { | 19 namespace base { |
19 class DictionaryValue; | 20 class DictionaryValue; |
20 } | 21 } |
21 | 22 |
22 namespace net { | 23 namespace net { |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
110 | 111 |
111 uint32 sequence_; | 112 uint32 sequence_; |
112 CRLList crls_; | 113 CRLList crls_; |
113 // not_after_ contains the time, in UNIX epoch seconds, after which the | 114 // not_after_ contains the time, in UNIX epoch seconds, after which the |
114 // CRLSet should be considered stale, or 0 if no such time was given. | 115 // CRLSet should be considered stale, or 0 if no such time was given. |
115 uint64 not_after_; | 116 uint64 not_after_; |
116 // crls_index_by_issuer_ maps from issuer SPKI hashes to the index in |crls_| | 117 // crls_index_by_issuer_ maps from issuer SPKI hashes to the index in |crls_| |
117 // where the information for that issuer can be found. We have both |crls_| | 118 // where the information for that issuer can be found. We have both |crls_| |
118 // and |crls_index_by_issuer_| because, when applying a delta update, we need | 119 // and |crls_index_by_issuer_| because, when applying a delta update, we need |
119 // to identify a CRL by index. | 120 // to identify a CRL by index. |
120 std::map<std::string, size_t> crls_index_by_issuer_; | 121 base::hash_map<std::string, size_t> crls_index_by_issuer_; |
121 // blocked_spkis_ contains the SHA256 hashes of SPKIs which are to be blocked | 122 // blocked_spkis_ contains the SHA256 hashes of SPKIs which are to be blocked |
122 // no matter where in a certificate chain they might appear. | 123 // no matter where in a certificate chain they might appear. |
123 std::vector<std::string> blocked_spkis_; | 124 std::vector<std::string> blocked_spkis_; |
124 }; | 125 }; |
125 | 126 |
126 } // namespace net | 127 } // namespace net |
127 | 128 |
128 #endif // NET_CERT_CRL_SET_H_ | 129 #endif // NET_CERT_CRL_SET_H_ |
OLD | NEW |