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