OLD | NEW |
1 // Copyright (c) 2007-2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2007-2010 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_BASE_X509_CERT_TYPES_H_ | 5 #ifndef NET_BASE_X509_CERT_TYPES_H_ |
6 #define NET_BASE_X509_CERT_TYPES_H_ | 6 #define NET_BASE_X509_CERT_TYPES_H_ |
7 | 7 |
8 #include <string.h> | 8 #include <string.h> |
9 | 9 |
10 #include <functional> | 10 #include <functional> |
11 #include <iostream> | 11 #include <iosfwd> |
12 #include <map> | 12 #include <map> |
13 #include <set> | 13 #include <set> |
14 #include <string> | 14 #include <string> |
15 #include <vector> | 15 #include <vector> |
16 | 16 |
17 #include "base/ref_counted.h" | 17 #include "base/ref_counted.h" |
18 #include "base/singleton.h" | 18 #include "base/singleton.h" |
19 #include "base/time.h" | 19 #include "base/time.h" |
20 #include "testing/gtest/include/gtest/gtest_prod.h" | 20 #include "testing/gtest/include/gtest/gtest_prod.h" |
21 | 21 |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 // Compares two OIDs by value. | 128 // Compares two OIDs by value. |
129 inline bool CSSMOIDEqual(const CSSM_OID* oid1, const CSSM_OID* oid2) { | 129 inline bool CSSMOIDEqual(const CSSM_OID* oid1, const CSSM_OID* oid2) { |
130 return oid1->Length == oid2->Length && | 130 return oid1->Length == oid2->Length && |
131 (memcmp(oid1->Data, oid2->Data, oid1->Length) == 0); | 131 (memcmp(oid1->Data, oid2->Data, oid1->Length) == 0); |
132 } | 132 } |
133 #endif | 133 #endif |
134 | 134 |
135 } // namespace net | 135 } // namespace net |
136 | 136 |
137 #endif // NET_BASE_X509_CERT_TYPES_H_ | 137 #endif // NET_BASE_X509_CERT_TYPES_H_ |
OLD | NEW |